MCPcopy Index your code
hub / github.com/python/cpython / func_std_string

Function func_std_string

Lib/pstats.py:588–597  ·  view source on GitHub ↗
(func_name)

Source from the content-addressed store, hash-verified

586 return func[2]
587
588def func_std_string(func_name): # match what old profile produced
589 if func_name[:2] == ('~', 0):
590 # special case for built-in functions
591 name = func_name[2]
592 if name.startswith('<') and name.endswith('>'):
593 return '{%s}' % name[1:-1]
594 else:
595 return name
596 else:
597 return "%s:%d(%s)" % func_name
598
599#**************************************************************************
600# The following functions combine statistics for pairs functions.

Callers 7

get_top_level_statsMethod · 0.85
sort_statsMethod · 0.85
strip_dirsMethod · 0.85
eval_print_amountMethod · 0.85
get_print_listMethod · 0.85
print_call_lineMethod · 0.85
print_lineMethod · 0.85

Calls 2

startswithMethod · 0.45
endswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…