Ejemplo n.º 1
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();
        }
Ejemplo n.º 3
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();
        }