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