Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 internal Profiler()
 {
     _rootNode = new ProfileNode();
 }
Exemplo n.º 3
0
 public Profiler()
 {
     _rootNode = new ProfileNode();
 }