示例#1
0
 public override void Load()
 {
     if (!IsLoaded)
     {
         DescriptionBoard = SamplingDescriptionBoard.Create(Response);
         Root             = SamplingNode.Create(Response.Reader, DescriptionBoard, null);
     }
 }
示例#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;
            }
        }
示例#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;
            }
        }
示例#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);
        }
示例#5
0
 public SamplingFrame(List <Callstack> callstacks, FrameGroup group) : base(null, group)
 {
     SampleCount = callstacks.Count;
     Root        = SamplingNode.Create(callstacks);
 }