コード例 #1
0
        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);
        }
コード例 #2
0
        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
                }
            });
        }
コード例 #3
0
 private FastStream GetTestStream()
 {
     Constants.WaitUntilFileIsReady(Constants.GetTestingFilePath("faststream.txt"));
     return(new FastStream(Constants.GetTestingFilePath("faststream.txt")));
 }
コード例 #4
0
 public void ZipDump()
 {
     Write(Constants.GetTestingFilePath(@"symbol-tests.trace.zip"));
 }
コード例 #5
0
 public void BigDataDump()
 {
     Write(Constants.GetTestingFilePath(@"C:\Users\t-lufern\Desktop\Luca\dev\bigperf.data.dump"));
 }
コード例 #6
0
 public void SpinningOnLinuxDump()
 {
     Write(Constants.GetTestingFilePath(@"C:\Users\t-lufern\Desktop\Luca\dev\helloworld.trace.zip"));
 }
コード例 #7
0
 private FastStream GetTestStream()
 {
     return(new FastStream(Constants.GetTestingFilePath("faststream.txt")));
 }