33// See the license.txt file in the project root for more information.
44
55using System . Diagnostics ;
6+ using JetBrains . Profiler . Api ;
67using LibObjectFile . Elf ;
78
89namespace LibObjectFile . Bench ;
@@ -11,6 +12,9 @@ internal class Program
1112{
1213 static void Main ( string [ ] args )
1314 {
15+ //Console.WriteLine($"Press enter to start benchmarking - pid: {Process.GetCurrentProcess().Id}");
16+ //Console.ReadLine();
17+
1418 Console . WriteLine ( "Loading files into memory" ) ;
1519 var clock = Stopwatch . StartNew ( ) ;
1620 var streams = new List < MemoryStream > ( ) ;
@@ -34,12 +38,14 @@ static void Main(string[] args)
3438
3539 clock . Stop ( ) ;
3640 Console . WriteLine ( $ "End reading in { clock . Elapsed . TotalMilliseconds } ms") ;
37- Console . ReadLine ( ) ;
38-
41+ //Console.ReadLine();
42+ //MeasureProfiler.StartCollectingData();
43+ //MeasureProfiler.StartCollectingData();
3944 Console . WriteLine ( "Processing" ) ;
4045 var memoryStream = new MemoryStream ( biggestCapacity ) ;
4146 clock . Restart ( ) ;
4247 //SuperluminalPerf.Initialize();
48+ //MeasureProfiler.StartCollectingData("Loading");
4349 for ( int i = 0 ; i < 10 ; i ++ )
4450 {
4551 //SuperluminalPerf.BeginEvent($"Round{i}");
@@ -52,6 +58,7 @@ static void Main(string[] args)
5258 }
5359 //SuperluminalPerf.EndEvent();
5460 }
61+ //MeasureProfiler.SaveData();
5562 clock . Stop ( ) ;
5663 Console . WriteLine ( $ "{ clock . Elapsed . TotalMilliseconds } ms") ;
5764 }
0 commit comments