Is there any C# framework or code to parse *blg Perfomance Counter log files?

前端 未结 3 1358
太阳男子
太阳男子 2021-01-13 08:31

The task is not to gather Performance counters data in my .NET app, but open already prepared binary log files (*.blg)?

I know that MS SQL Profiler (.NET app) can pa

3条回答
  •  [愿得一人]
    2021-01-13 09:14

    Tx (LINQ to Logs and Traces) is a C# library that can parse blg files.

    And that is the usage:

    var playback = new Playback();
    
    playback.AddPerfCounterTraces(@"C:\bin\Release\Net40\BasicPerfCounters.blg");
    
    playback
        .GetObservable()
        .Dump();
    
    playback.Run();
    

    You can also find examples how to use it in Tx samples for LINQpad:

提交回复
热议问题