differentiate between monte carlo profiler and kernel profiler

differentiate between monte carlo profiler and kernel profiler

Post by QmV2ZXJseV » Wed, 17 Sep 2008 18:58:01


im now learning how to monte carlo profiler..
Act, is there got any differences between monte carlo profiler and kernel
profiler ??

from my knowledge, to run the kernel profiler, i must first set up and then
build a run-time image that supports the kernel profiler. So, I need to
develop a new OAL for my monte carlo profiler?? Those source code i need
implement in which folder??

After build the runtime image, i need launch any tools to start the
profiler?? or when i build the image, it already done the profiling??

thanks for your help..

thanks thanks thanks..
 
 
 

differentiate between monte carlo profiler and kernel profiler

Post by Luca Calli » Wed, 17 Sep 2008 19:35:14

There are some interesting posts by Sue Loh about the subject:

http://www.yqcomputer.com/
http://www.yqcomputer.com/
http://www.yqcomputer.com/

HTH

--

Luca Calligaris
www.eurotech.it

"BeverlyYeng" < XXXX@XXXXX.COM > ha scritto nel messaggio

 
 
 

differentiate between monte carlo profiler and kernel profiler

Post by QmV2ZXJseV » Thu, 18 Sep 2008 10:58:10

yaya..i got look at it..now my question is after build the runtime image, i
need launch any tools to start the profiler?? or when i build the image, it
already done the profiling??

im quite blur on it...

thanks..
 
 
 

differentiate between monte carlo profiler and kernel profiler

Post by QmV2ZXJseV » Thu, 18 Sep 2008 10:59:00

yaya..i got look at it..nw my problem is after build the runtime image, i
need launch any tools to start the profiler?? or when i build the image, it
already done the profiling??

im ery blur on it..

thanks yar..
 
 
 

differentiate between monte carlo profiler and kernel profiler

Post by Qy5M » Thu, 18 Sep 2008 15:58:01

In http://www.yqcomputer.com/ , it mentions
3 options to start/stop the profiler. Are these what you need?


5. Start the profiler in CeLog mode. When the profiler starts, it will
change the CeLog zone settings to prevent other non-profiling events from
being stored in the log.
Option 1: Type "prof on -l" in the Target Control Window, to start profiling
in CeLog mode.
Option 2: Hit the F8 key until the profiler is toggled to CeLog mode. The
current output mode will be printed to debug output. Hitting this key does
not start the profiler. Start the Monte Carlo profiler by hitting the F9 key.
Option 3: Control the profiler from an application using the ProfileStart
API. Make sure to use the new PROFILE_CELOG flag with ProfileStart.

6. Run your test application.

7. Stop the profiler. You will get some debug output, but the profiler data
is in the CeLog stream, so you won't see profiler results in the debug
output. When the profiler stops, it will restore the original CeLog zone
settings that were active before profiling was started.
Option 1: Type "prof off" in the Target Control window.
Option 2: Hit the F12 key to stop the profiler.
Option 3: Stop the profiler from within an application by using the
ProfileStop API.
 
 
 

differentiate between monte carlo profiler and kernel profiler

Post by QmV2ZXJseV » Thu, 18 Sep 2008 16:37:01

hya..tat what im finding..thanks for ur remind..

but, im nw facing another blur case that is when i " type "prof on -l" in
the Target Control Window, to start profiling in CeLog mode ".. is already
can?? what u mean by CeLog mode??


"C.L" wrote:

 
 
 

differentiate between monte carlo profiler and kernel profiler

Post by QmV2ZXJseV » Thu, 18 Sep 2008 17:12:01

hya..tat what im finding..thanks for ur remind..

but, im nw facing another blur case that is when i " type "prof on -l" in
the Target Control Window, to start profiling in CeLog mode ".. is already
can?? what u mean by CeLog mode??

beside, those profiler implementation from
http://blogs.msdn.com/ce_base/archive/2006/01/23/516637.aspx need add into
which OAL folder ?? or just add into my app coding ??

sorry for the stupid question..

"BeverlyYeng" wrote:

 
 
 

differentiate between monte carlo profiler and kernel profiler

Post by Qy5M » Thu, 18 Sep 2008 19:13:01

ou do not need to care about what CeLog is. Monte carlo profiler can be
launched without CELog. Just type "prof on" and "prof off" in Windows CE
Target Control to turn on/off the monte carlo profiler and then you could get
the "MONTE CARLO HIT REPORT" from PB Debug window.

OEMProfileTimerEnable, OEMProfileTimerDisable and OEMInterruptHandler must
be implemented in OAL. Which folder? Depend on the layout of your BSP. I can
not tell you the exact folder. Just search these three functions in your BSP,
and you will got them.

"BeverlyYeng" wrote:

 
 
 

differentiate between monte carlo profiler and kernel profiler

Post by QmV2ZXJseV » Fri, 19 Sep 2008 09:29:01

h..okie..

abt the OEMProfileTimerEnable, OEMProfileTimerDisable and
OEMInterruptHandler , i found all this function in
C:\WINCE500\PLATFORM\SWIFT\Public\CSP\MONAHANS\OAL\PROFILER\profiler.c

it is this coding just a sample coding or it already implemented ? If it
already implement, how to link it to my app ?? or just continue the step ??

"C.L" wrote:

 
 
 

differentiate between monte carlo profiler and kernel profiler

Post by Qy5M » Fri, 19 Sep 2008 12:44:01

f the BSP is qualified, I think it already implements. If so, you just need to
1. make sure include profiler in your OS image.
2. "prof on" in Windows CE Target Control to turn on profiler.
3. "s yourapp" in Windows CE Target Control to execute your application.
4. "prof off" in Windows CE Target Control to turn off profiler.
5. Check the result in PB Debug Window.


"BeverlyYeng" wrote:

 
 
 

differentiate between monte carlo profiler and kernel profiler

Post by QmV2ZXJseV » Fri, 19 Sep 2008 16:23:01

hat u mean by
1. make sure include profiler in your OS image.
3. "s yourapp" ...

thanks for ur helping..you realli help me alot..


"C.L" wrote:

 
 
 

differentiate between monte carlo profiler and kernel profiler

Post by Qy5M » Fri, 19 Sep 2008 18:48:05

. Check if IMGPROFILER is set to 1. If no, set IMGPROFILER=1 and then makeimg.
2. Run your test application if you have one.

"BeverlyYeng" wrote:

 
 
 

differentiate between monte carlo profiler and kernel profiler

Post by QmV2ZXJseV » Sat, 20 Sep 2008 09:59:00

h..okie..

i will try to run on it..

thanks for ur explanation..

thanks thanks thanks...


"C.L" wrote:

 
 
 

differentiate between monte carlo profiler and kernel profiler

Post by QmV2ZXJseV » Sat, 20 Sep 2008 10:11:00

ut what u mean by BSP qualified ??
im now using BSP for swift hardware.. sumthg look like custom BSP..


"BeverlyYeng" wrote:

 
 
 

differentiate between monte carlo profiler and kernel profiler

Post by QmV2ZXJseV » Sat, 20 Sep 2008 11:54:00

f i follow the step from this website [
http://msdn.microsoft.com/en-us/library/ms901844.aspx ] to implement the
OEM..tat its correct ??

anyway what u mean by BSP qualified ??
im now using BSP for swift hardware.. sumthg look like custom BSP..