Tuesday, 15 June 2010

com - Running a code profiler on Windows Mobile device -



com - Running a code profiler on Windows Mobile device -

i trying write com server employs .net profiling api. com server run on windows mobile 6 devices. purpose of com server profile .net applications running on same device. however, not able find next header files in windows mobile sdks:

cor.h corprof.h

does mean need port these header files using corresponding versions available in windows (desktop) sdk?

it's these header files define family of icorprofilercallback interfaces crucial using .net profiling api.

i have taken @ these header files nowadays in windows sdk , have found contain lot of platform specific info related object model of .net framework , format of pe file representing .net assembly. seems require intimate knowledge of implementation details in these areas of .net port. there alternatives ?

the problem you're running made wrong assumption @ outset compact framework supports of icorprofilercallback interfaces. not. if want profiling, few paths have been followed in past other profilers i've seen/used:

use reflection rebuild , instrument cf assemblies on desktop. using own proprietary publishing paradigm, can force out function enter/exit messages , things that. useful code profiling, not much memory profiling. build mono.cecil cf , utilize instrument/emit right on target device. slower, more portable. use undocumented memory profiling apis in cf the cf clr profiler uses. i've hunted docs on these , come empty, , i've tried pushing microsoft open source tool on codeplex, i've made 0 progress on either, lot of reverse engineering science of network packets existing tool , wireshark.

com windows-mobile profiling compact-framework windows-mobile-6

No comments:

Post a Comment