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: Diff two sets of counts.
  
  One common reason to collect instruction counts is to determine the
  the effect that a particular change will have on the number of instructions
  needed to perform some unit of work. If a change increases that number, the
  next logical question is "why". This generally involves looking at what part
  if the code increased in instruction count. This function automates that
  process so that one can easily diff counts on both an inclusive and
  exclusive basis.
code: def delta(
      self,
      other: "CallgrindStats",
      inclusive: bool = False,
  ) -> FunctionCounts:
      """Diff two sets of counts.
  
      One common reason to collect instruction counts is to determine the
      the effect that a particular change will have on the number of instructions
      needed to perform some unit of work. If a change increases that number, the
      next logical question is "why". This generally involves looking at what part
      if the code increased in instruction count. This function automates that
      process so that one can easily diff counts on both an inclusive and
      exclusive basis.
      """
      return self.stats(inclusive=inclusive) - other.stats(
          inclusive=inclusive
      )
  
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 4 for calling the CallgrindStats obj's underlying member method code with example usage: obj.delta(other, inclusive) and returns: unknown