1)Build a debug copy of the dll and deploy it to your device with a cab file. Remember to build with WINCESHIP= and WINCEDEBUG=debug
2)Get the following files from your emulator FRD and copy to the windows directory on device
a.celog.exe,
b.oscapture.exe
c.celogflush.exe
d.perfman.exe
3)start celogflush.exe
4)Start perfman.exe
select the zones. 0x800000 is the debug zone.
When done collecting data go to the root directory on your pocket pc and find the file . perfman.log
Parse celog:
readlog perman.log output.txt
Here are some more flags.
LZONE_PROCESS (0x00000040)
CELZONE_THREAD (0x00000020)
CELZONE_RESCHEDULE (0x00000002)
CELZONE_CRITSECT (0x00000100)
CELZONE_SYNCH (0x00000200)
CELZONE_DEMANDPAGE (0x00000010)
CELZONE_HEAP (0x00000800)
CELZONE_INTERRUPT (0x00000001)
CELZONE_DEBUG (0x00800000)
CELZONE_MIGRATE (0x00000004)
CELZONE_PRIORITYINV (0x00000080)
Frank is a Software Engineer with rich experiences on messeging system, embedded system and communication system development. This is his work notes.
Tuesday, March 09, 2010
Subscribe to:
Comments (Atom)