github.com/grafana/pyroscope@v1.18.0/examples/language-sdk-instrumentation/dotnet/README.md (about)

     1  # .NET Examples
     2  
     3  The directory contains examples of how to run Pyroscope to profile .NET applications in Docker containers.
     4  
     5  ### Fast-slow
     6  
     7  The example is a simple single-thread application similar to examples for other spies.
     8  
     9  The code is pretty self-explanatory: `Slow.Work` should take 80% of CPU time and remaining 20% to be consumed by
    10  `Fast.Work`. You may ask why `Fast` and `Slow` classes are defined in separate namespaces. The fact is that Pyroscope
    11  colors frames depending on the namespaces (for .NET traces), so they are defined in this way just for sake of demo ;)
    12  
    13  To run the example execute the following commands:
    14  
    15  ```shell
    16  # cd examples/dotnet/fast-slow
    17  # docker-compose up
    18  ```