void AddSampleToNode(string[] stack, int stackIdx, double duration) { var nodeKey = stack[stackIdx]; if (_nodes == null) { _nodes = new Dictionary <string, ProfileNode>(); } ProfileNode node; if (!_nodes.TryGetValue(nodeKey, out node)) { node = new ProfileNode(nodeKey); _nodes[nodeKey] = node; } node.AddSample(stack, stackIdx, duration); }
internal Profiler() { _rootNode = new ProfileNode(); }
public Profiler() { _rootNode = new ProfileNode(); }