Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# profiler as a library, not application

Tags:

c#

profiling

Does anyone know about a profiler library in C# that I could embed in my source code that would do sample-based profiling? I.e. periodically get the instruction pointer location, store it in memory and allow to save it to a file and analyze later, presumably by some desktop application?

I know there are lots of traditional profiler applications (like JetBrains, Ants etc.), but I want to profile a C# program running on a non-desktop platform, where none of these profilers can be used. I want my application to sample itself, not an external profiler.

like image 747
kaalus Avatar asked Nov 12 '22 23:11

kaalus


1 Answers

The Eqatec profiler might suit. I know at least in earlier versions the profiling got compiled into your binaries.

The user guide seems to provide a good overview of how to use it:

http://eqatec.zendesk.com/entries/20325613-user-guide#Intro

like image 135
scdove Avatar answered Dec 04 '22 00:12

scdove