runtime icon indicating copy to clipboard operation
runtime copied to clipboard

How to profile the ni.dll from crossgen?

Open idkiller opened this issue 9 years ago • 3 comments

How to use profile API (ICorProfilerCallback*) with ni.dll?

I was referring the "profiling api sample" and used Profile API with normal dll.

it was works good to catch the method enter / leave events in Normal DLLs. Current our arm target is very slow, so we have to use ni.dll that created by crossgen. currently, ni.dll reduce application launching time over 10 sec to 2sec under. I want profile data with ni.dll but profiling API does not work with ni.dll

I guess the sample hook the callback to function JIT starting time so it does not work pre JITed ni.dll.

I figured out the /profile option is used for profiling with old NGEN.exe but I can't find same feature in crossgen.

How I can profile the ni.dll with crossgen? And which part of source should I look If there is no way in current?

idkiller avatar Feb 24 '17 09:02 idkiller

@brianrob can help with instructions on how to profile for .NET Core.

gkhanna79 avatar Mar 04 '17 17:03 gkhanna79

Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.

This process is part of our issue cleanup automation.

This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.