PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Profiling on ARM

Hey Guyz,

Building a 3d engine goes a long way without actually profiling it on the device itself, but it seems I've reached that point where getting some kind of profiling info on the device itself seems more sensible than profile info on my PC.

I've tuned the thing with VTune on the desktop and this gives me some insight on which functions it dwells in the most.
Now a Pentium and Arm most definately differ in a lot of areas (no floats, no division etc) so I'm guessing that these numbers are probably somewhat different on the Arm.

My question: How do you guys profile this kind of stuff?
Is there a possibility to run it on an Arm device?
Or maybe a real emulator which actually emulates Arm (instead of the PocketPC emulators which actually run X86)

Any thoughts are welcome! :)

Reinier
Theoretically there is a PocketPC client module for VTune. It only runs on a few devices (such as the Dell Axim X3). Unfortunately i was never able to get any useful data from it. The sampled data i got was completely meaningless.

So i usually just do accurate timing with carefully predefined input data.

For detailed timing of specific functions or modules i use the high precision timer. Unfortunately the timer functions themself have quite some overhead so don't place it too deeply into your code (e.g. at pixel or scanline level won't work well).

I'd also be interested seeing if people have other solutions.

bye,
Daniel
I have a desktop (Strong)ARM computer running Linux; I use that for profiling instead of messing around with PDAs. I'll shortly be purchasing a small (read: cheap) XScale development kit to do the same kind of thing.
My question: How do you guys profile this kind of stuff?


U can write a simple profiler using QueryPerformanceCounter to find any hotspots. After that, I put stuff that needs optimizing into a seperate test app, which feeds it sample data (representative of real stuff) and compare performances (and validates) with the original code as I make changes I havent had much success with vtune, it seems rather flakey, it would be great if it worked....
I read somewhere that Microsoft came up with a new PocketPC which actually runs ARM code.

I hope this opens doors to actually profilling apps on PocketPC! :)
i think you are mixing up some things here:
ARM is the primary processor for PocketPCs today. only very few devices do not use ARM processors.

Visual Studio .NET 2005 will for the first time include an emulator which can actually emulate an ARM processor (in contrast to the previous emulators which ran only X86 code and were therefore pretty useless).

unfortunately this new emulator runs only std. ARM code and no XScale specific operations which reduces its value for me quite significantly. still it's an improvement...

bye,
Daniel
You wanna profile the real hardware anyways, there will probably be significant performance differences depending on how the emulator is written.
hi,

yes of course I meant to write 'pocketpc emulator' which runs ARM code :lol:

anyhow..I think if it has profiling features it might be very interesting to use.
Of course, it is not the real thing, but it beats profiling the same code compiled for a PC and run on a pentium 8000+ mhz