Ejemplo n.º 1
0
 public override void Load()
 {
     if (!IsLoaded)
     {
         DescriptionBoard = SamplingDescriptionBoard.Create(Response);
         Root             = SamplingNode.Create(Response.Reader, DescriptionBoard, null);
     }
 }
Ejemplo n.º 2
0
        public override void Load()
        {
            if (!IsLoaded)
            {
                DescriptionBoard = SamplingDescriptionBoard.Create(Reader);
                root             = SamplingNode.Create(Reader, DescriptionBoard, null);

                board = new Board <SamplingBoardItem, SamplingDescription, SamplingNode>(root);

                IsLoaded = true;
            }
        }
Ejemplo n.º 3
0
        public override void Load()
        {
            if (!IsLoaded)
            {
                DescriptionBoard = SamplingDescriptionBoard.Create(Reader);
                root             = SamplingNode.Create(Reader, DescriptionBoard, null);
                root.CalculateRecursiveExcludeFlag(new Dictionary <Object, int>());

                board = new Board <SamplingBoardItem, SamplingDescription, SamplingNode>(root);

                IsLoaded = true;
            }
        }
Ejemplo n.º 4
0
        public static SamplingNode Create(BinaryReader reader, SamplingDescriptionBoard board, SamplingNode root)
        {
            UInt64 address = reader.ReadUInt64();

            SamplingDescription desc = null;

            if (!board.Descriptions.TryGetValue(address, out desc))
            {
                desc = SamplingDescription.UnresolvedDescription;
            }

            UInt32 passed = reader.ReadUInt32();

            SamplingNode node = new SamplingNode(root, desc, passed);

            UInt32 childrenCount = reader.ReadUInt32();

            for (UInt32 i = 0; i < childrenCount; ++i)
            {
                node.AddChild(SamplingNode.Create(reader, board, root != null ? root : node));
            }

            return(node);
        }
Ejemplo n.º 5
0
 public SamplingFrame(List <Callstack> callstacks, FrameGroup group) : base(null, group)
 {
     SampleCount = callstacks.Count;
     Root        = SamplingNode.Create(callstacks);
 }