ATLAS Offline Software
Classes | Functions
python.ext.lsprofcalltree Namespace Reference

Classes

class  KCacheGrind
 

Functions

def label (code)
 

Function Documentation

◆ label()

def python.ext.lsprofcalltree.label (   code)

Definition at line 3 of file lsprofcalltree.py.

3 def label(code):
4  if isinstance(code, str):
5  return ('~', 0, code) # built-in functions ('~' sorts at the end)
6  else:
7  return '%s %s:%d' % (code.co_name, code.co_filename, code.co_firstlineno)
8 
9 
10 
python.ext.lsprofcalltree.label
def label(code)
Definition: lsprofcalltree.py:3