class_docstr: Top level container for Callgrind results collected by Timer.
  
  Manipulation is generally done using the FunctionCounts class, which is
  obtained by calling `CallgrindStats.stats(...)`. Several convenience
  methods are provided as well; the most significant is
  `CallgrindStats.as_standardized()`.
class_docstr_tok: ["Top","level","container","for","Callgrind","results","collected","by","Timer",".","Manipulation","is","generally","done","using","the","FunctionCounts","class",",","which","is","obtained","by","calling","`","CallgrindStats.stats","(","...",")","`",".","Several","convenience","methods","are","provided","as","well",";","the","most","significant","is","`","CallgrindStats.as_standardized","(",")","`","."]
docstr: Returns detailed function counts.
  
  Conceptually, the FunctionCounts returned can be thought of as a tuple
  of (count, path_and_function_name) tuples.
  
  `inclusive` matches the semantics of callgrind. If True, the counts
  include instructions executed by children. `inclusive=True` is useful
  for identifying hot spots in code; `inclusive=False` is useful for
  reducing noise when diffing counts from two different runs. (See
  CallgrindStats.delta(...) for more details)
code: def stats(self, inclusive: bool = False) -> FunctionCounts:
      """Returns detailed function counts.
  
      Conceptually, the FunctionCounts returned can be thought of as a tuple
      of (count, path_and_function_name) tuples.
  
      `inclusive` matches the semantics of callgrind. If True, the counts
      include instructions executed by children. `inclusive=True` is useful
      for identifying hot spots in code; `inclusive=False` is useful for
      reducing noise when diffing counts from two different runs. (See
      CallgrindStats.delta(...) for more details)
      """
      return (
          self.stmt_inclusive_stats
          if inclusive
          else self.stmt_exclusive_stats
      )
  
imports: import collections
  import enum
  import dataclasses
  import itertools
  import os
  import pickle
  import re
  import shutil
  import subprocess
  import sys
  import textwrap
  from typing import cast, Any, Callable, DefaultDict, Dict, Iterator, List, NamedTuple, Optional, Tuple, Union, TYPE_CHECKING
  import torch
  from torch.utils.benchmark.utils import common, cpp_jit
  from torch.utils.benchmark.utils._stubs import CallgrindModuleType
  import operator
label_desc: Use image node_id 2 for calling the CallgrindStats obj's underlying member method code with example usage: obj.stats(inclusive) and returns: unknown