Beispiel #1
0
 public void SetUp()
 {
     using (var f = File.Open("RealFile\\MMProfiler.log", FileMode.Open))
     {
         var parser = new BinaryFileProfilerDataParser();
         items = parser.Parse(f).ToList();
     }
 }
 public void SetUp()
 {
     using (var f = File.Open("RealFile\\MMProfiler.log", FileMode.Open))
     {
         var parser = new BinaryFileProfilerDataParser();
         items = parser.Parse(f).ToList();
     }
 }
        public void a_stack_underflow_exception_is_thrown()
        {
            var stream = DataBuilder.Create(
                Entry.Enter(1).At(43.5).WithFunctionId(12345).For("Method").RuntimeOf("RuntimeMethod"),
                Entry.Leave(3).At(43.6).WithFunctionId(12346)
                );

            var parser = new BinaryFileProfilerDataParser();
            parser.Parse(stream).ToList();
        }
        public void can_read_single_open_close()
        {
            var stream = DataBuilder.Create(
                Entry.Enter(1).At(43.5).WithFunctionId(12345).For("Method").RuntimeOf("RuntimeMethod").OnThread(1),
                Entry.Leave(2).At(43.6).WithFunctionId(12345).OnThread(1)
                );

            var parser = new BinaryFileProfilerDataParser();
            items = parser.Parse(stream).ToList();
        }
Beispiel #5
0
        public void a_stack_underflow_exception_is_thrown()
        {
            var stream = DataBuilder.Create(
                Entry.Enter(1).At(43.5).WithFunctionId(12345).For("Method").RuntimeOf("RuntimeMethod"),
                Entry.Leave(3).At(43.6).WithFunctionId(12346)
                );

            var parser = new BinaryFileProfilerDataParser();

            parser.Parse(stream).ToList();
        }
        public void can_read_single_open_close()
        {
            var stream = DataBuilder.Create(
                Entry.Enter(1).At(43.5).WithFunctionId(12345).For("Method").RuntimeOf("RuntimeMethod").OnThread(1),
                Entry.Leave(2).At(43.6).WithFunctionId(12345).OnThread(1)
                );

            var parser = new BinaryFileProfilerDataParser();

            items = parser.Parse(stream).ToList();
        }
        public void SetUp()
        {
            var stream = DataBuilder.Create(
                Entry.Enter(1).At(43.5).WithFunctionId(12345).For("Method").RuntimeOf("RuntimeMethod"),
                Entry.Enter(2).At(43.5).WithFunctionId(12346).For("Method1").RuntimeOf("RuntimeMethod"),
                Entry.Enter(3).At(43.5).WithFunctionId(12347).For("Method2").RuntimeOf("RuntimeMethod"),
                Entry.Leave(4).At(43.6).WithFunctionId(12345)
                );

            var parser = new BinaryFileProfilerDataParser();
            items = parser.Parse(stream).ToList();
        }
Beispiel #8
0
        public void SetUp()
        {
            var stream = DataBuilder.Create(
                Entry.Enter(1).At(43.5).WithFunctionId(12345).For("Method").RuntimeOf("RuntimeMethod"),
                Entry.Enter(2).At(43.5).WithFunctionId(12346).For("Method1").RuntimeOf("RuntimeMethod"),
                Entry.Enter(3).At(43.5).WithFunctionId(12347).For("Method2").RuntimeOf("RuntimeMethod"),
                Entry.Leave(4).At(43.6).WithFunctionId(12345)
                );

            var parser = new BinaryFileProfilerDataParser();

            items = parser.Parse(stream).ToList();
        }