Retrace will reach End of Life on March 31, 2027. Click here to learn more.

How to use Prefix to profile your own custom code

By: mwatson
  |  March 24, 2016
How to use Prefix to profile your own custom code

Today’s desktops and servers are amazingly fast. For most developers and apps, their actual code takes nearly ZERO time to execute. Almost all of the time is spent executing a database query, connecting to web service, etc. This is also why asynchronous programming is so important and has become so popular. Our goal with Prefix and the Stackify APM is to track all of the time that your app spends performing common operations.

Prefix is powered by profiling the .NET CLR. This enables us to do some pretty amazing things like automatically instrumenting and tracking the performance of dozens of common frameworks, including SQL queries, web service calls, logging, cache calls, queuing, and much more. However, Prefix & the Stackify APM, Retrace, will never be able to track the performance of everything; they both provide the ability for you to customize what methods are being tracked by our profiler.

Configuring custom profiling

The Stackify .NET profiler automatically profiles hundreds of methods. We provide a simple mechanism via a JSON file that you can create to specify additional custom methods. For example, let’s pretend that Prefix didn’t support tracking calls to Elasticsearch via the Nest library (it really does). Some simple JSON like this is all you would need to tell Prefix how to track this new method:

[{“Class”: “Nest.ElasticClient”, “Method”: “DoRequest”}]

You can also configure Prefix to track methods in your own projects and code. It is possible to use wildcards to track every class or method within a namespace even. Be careful though – tracking too many methods can bring your web server to a halt. Tracking something like System.* would instantly cause IIS to hang.

Video walkthrough

To learn even more, please watch this video:

Get Prefix Power on a server!
Get Prefix Power on a server!


Improve Your Code with Retrace APM

Stackify's APM tools are used by thousands of .NET, Java, PHP, Node.js, Python, & Ruby developers all over the world.
Explore Retrace's product features to learn more.

Learn More
indobet toto slot toto toto bobatoto daftar logototo patentoto toto bayitoto popotogel prize hongkong malam ini joker11 lingkartoto depo 5k https://nolimithoki.dev/ dinasti33 slot slot jepang https://www.juara288.asia/ slot 4d toto toto flokitoto slot gacor logototo slot depo 5k bobatoto bobatoto bobatoto sontogel mpo slot situs toto slot situs slot bobatoto kari4d kari4d kari4d kari4d pascol4d pascol4d pascol4d bento11 link slot gacor toto toto slot toto situs slot situs slot situs slot https://www.asupan188.dev/ slot gacor gampang menang toto slot gacor bwo303 situs toto toto slot slot gacor slot88 slot gacor situs slot link slot slot gacor pucuk4d PASCOL4D situs slot link slot slotvip situs toto toto slot situs slot situs slot situs slot toto slot gacor slot777 situs judi bola POPOTOGEL : Situs Resmi Bandar Toto Togel Macau dengan Prediksi Gokil Pasti Akurat link slot slot gacor situs slot slot gacor slot gacor situs slot link slot gacor Slot88 Slot88 slot gacor situs toto toto slot pulsa slot777 link slot gacor situs gacor slot gacor slot gacor slot gacor slot gacor Slot88 situs slot slot gacor Slot88 slot gacor slot terbaru slot gacor situs slot slot gacor situs slot Situs Slot POPOTOGEL: Regulasi Bandar Situs Togel Resmi & Bola Mix Parlay Asia Terpercaya StreamEast Jpmania slot resmi slot slot resmi slot bayitoto patentoto link gacor slot gacor kari4d slot gacor slot gacor slot gacor AMANAHTOTO pascol4d kari4d AMANAHTOTO kari4d bragatoto slot gacor slot game patentoto pucuk4d rokokbet rokokbet kari4d pascol4d LOGIN PASCOL4D pucuk4d roma77 judi bola slot depo 10k mpo slot Girang4d KARI4D StreamEast AMANAHTOTO jutatoto PARLAY slot88 slot depo 5k hoki99 pascol4d pkv games roma77 Slot poker slot situs slot PREMANTOTO AMANAHTOTO AMANAHTOTO AMANAHTOTO dominoqq vespa36 kari4d vespa36 leon188 leon188 vespa36 gacor mpo login TOTO SLOT hoki99 KENANGAN889
indobet toto slot toto toto bobatoto daftar logototo patentoto toto bayitoto popotogel prize hongkong malam ini joker11 lingkartoto depo 5k https://nolimithoki.dev/ dinasti33 slot slot jepang https://www.juara288.asia/ slot 4d toto toto flokitoto slot gacor logototo slot depo 5k bobatoto bobatoto bobatoto sontogel mpo slot situs toto slot situs slot bobatoto kari4d kari4d kari4d kari4d pascol4d pascol4d pascol4d bento11 link slot gacor toto toto slot toto situs slot situs slot situs slot https://www.asupan188.dev/ slot gacor gampang menang toto slot gacor bwo303 situs toto toto slot slot gacor slot88 slot gacor situs slot link slot slot gacor pucuk4d PASCOL4D situs slot link slot slotvip situs toto toto slot situs slot situs slot situs slot toto slot gacor slot777 situs judi bola POPOTOGEL : Situs Resmi Bandar Toto Togel Macau dengan Prediksi Gokil Pasti Akurat link slot slot gacor situs slot slot gacor slot gacor situs slot link slot gacor Slot88 Slot88 slot gacor situs toto toto slot pulsa slot777 link slot gacor situs gacor slot gacor slot gacor slot gacor slot gacor Slot88 situs slot slot gacor Slot88 slot gacor slot terbaru slot gacor situs slot slot gacor situs slot Situs Slot POPOTOGEL: Regulasi Bandar Situs Togel Resmi & Bola Mix Parlay Asia Terpercaya StreamEast Jpmania slot resmi slot slot resmi slot bayitoto patentoto link gacor slot gacor kari4d slot gacor slot gacor slot gacor AMANAHTOTO pascol4d kari4d AMANAHTOTO kari4d bragatoto slot gacor slot game patentoto pucuk4d rokokbet rokokbet kari4d pascol4d LOGIN PASCOL4D pucuk4d roma77 judi bola slot depo 10k mpo slot Girang4d KARI4D StreamEast AMANAHTOTO jutatoto PARLAY slot88 slot depo 5k hoki99 pascol4d pkv games roma77 Slot poker slot situs slot PREMANTOTO AMANAHTOTO AMANAHTOTO AMANAHTOTO dominoqq vespa36 kari4d vespa36 leon188 leon188 vespa36 gacor mpo login TOTO SLOT hoki99 KENANGAN889