Skip to main content

vm can not dump graph.prf

1 reply [Last post]
chenzhiyu
Offline
Joined: 2008-06-03

i want to get graph.prf to optimize the system's bottlenecks, following the step described in Porting Guide
1 build cldc release version with ENABLE_WK_PROFILER to true
2 build Java Wireless Client software with USE_JAVA_PROFILER to true
3 specify +UseExactProfiler when start the Java Wireles Client software

but this cause a vm error:
Error ID: ..\cldc\src\vm\share\runtime\WTKProfiler.cpp, 548 ShouldNotReachHere()

is there any step or flag i missed?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
danila
Offline
Joined: 2006-09-25

Hello!
most likely this error happens because WTK profiler runs out of PCSL native heap.

Please check if you use 'heap' implementation for memory module,
the implementation is selected with the make variable MEMORY_MODULE.

In this case, you can try a workaround: increase the PCSL native heap size.
It is defined with a macro DEFAULT_POOL_SIZE in pcsl/memory/heap/pcsl_memory.c

Danila