public void ConcurrentBlockedTime() { string path = Constants.GetTestingFilePath(@"C:\Users\t-lufern\Desktop\Luca\dev\helloworld.trace.zip"); var linearStackSource = new LinuxPerfScriptStackSource(path, true); Constants.WaitUntilFileIsReady(path); var parallelStackSource = new ParallelLinuxPerfScriptStackSource(path, true); Assert.Equal(linearStackSource.TotalBlockedTime, parallelStackSource.TotalBlockedTime); }
public void ResolvingSymbols() { string path = Constants.GetTestingFilePath("symbol-tests.trace.zip"); DoStackTraceTest(path, doBlockedTime: false, callerStacks: new List <List <string> > { new List <string> { "mscorlib!dynamicClass::IL_STUB_PInvoke(int32,native int,int32,int32,class System.Text.StringBuilder,int32,native int)", "Thread (0)", "first_symbol", null }, new List <string> { "mscorlib!System.BadImageFormatException::.ctor(string,string)", "Thread (0)", "middle_symbol", null }, new List <string> { "mscorlib!System.Collections.Generic.Dictionary`2+Enumerator[System.UInt64,System.__Canon]::.ctor(class System.Collections.Generic.Dictionary`2<!0,!1>,int32)", "Thread (0)", "last_symbol", null }, new List <string> { "mscorlib.ni.dll!unknown", "Thread (0)", "out_of_range", null } }); }
private FastStream GetTestStream() { Constants.WaitUntilFileIsReady(Constants.GetTestingFilePath("faststream.txt")); return(new FastStream(Constants.GetTestingFilePath("faststream.txt"))); }
public void ZipDump() { Write(Constants.GetTestingFilePath(@"symbol-tests.trace.zip")); }
public void BigDataDump() { Write(Constants.GetTestingFilePath(@"C:\Users\t-lufern\Desktop\Luca\dev\bigperf.data.dump")); }
public void SpinningOnLinuxDump() { Write(Constants.GetTestingFilePath(@"C:\Users\t-lufern\Desktop\Luca\dev\helloworld.trace.zip")); }
private FastStream GetTestStream() { return(new FastStream(Constants.GetTestingFilePath("faststream.txt"))); }