1 from profile import Profile
\r
2 from cProfile import Profile as _cProfile
\r
5 from typing import Any, Dict, IO, Iterable, List, Text, Tuple, TypeVar, Union, overload
\r
7 _Selector = Union[str, float, int]
\r
8 _T = TypeVar('_T', bound='Stats')
\r
9 if sys.version_info >= (3, 6):
\r
10 _Path = Union[bytes, Text, os.PathLike[Any]]
\r
12 _Path = Union[bytes, Text]
\r
15 def __init__(self: _T, __arg: Union[None, str, Text, Profile, _cProfile] = ...,
\r
16 *args: Union[None, str, Text, Profile, _cProfile, _T],
\r
17 stream: IO[Any] = ...) -> None: ...
\r
18 def init(self, arg: Union[None, str, Text, Profile, _cProfile]) -> None: ...
\r
19 def load_stats(self, arg: Union[None, str, Text, Profile, _cProfile]) -> None: ...
\r
20 def get_top_level_stats(self) -> None: ...
\r
21 def add(self: _T, *arg_list: Union[None, str, Text, Profile, _cProfile, _T]) -> _T: ...
\r
22 def dump_stats(self, filename: _Path) -> None: ...
\r
23 def get_sort_arg_defs(self) -> Dict[str, Tuple[Tuple[Tuple[int, int], ...], str]]: ...
\r
25 def sort_stats(self: _T, field: int) -> _T: ...
\r
27 def sort_stats(self: _T, *field: str) -> _T: ...
\r
28 def reverse_order(self: _T) -> _T: ...
\r
29 def strip_dirs(self: _T) -> _T: ...
\r
30 def calc_callees(self) -> None: ...
\r
31 def eval_print_amount(self, sel: _Selector, list: List[str], msg: str) -> Tuple[List[str], str]: ...
\r
32 def get_print_list(self, sel_list: Iterable[_Selector]) -> Tuple[int, List[str]]: ...
\r
33 def print_stats(self: _T, *amount: _Selector) -> _T: ...
\r
34 def print_callees(self: _T, *amount: _Selector) -> _T: ...
\r
35 def print_callers(self: _T, *amount: _Selector) -> _T: ...
\r
36 def print_call_heading(self, name_size: int, column_title: str) -> None: ...
\r
37 def print_call_line(self, name_size: int, source: str, call_dict: Dict[str, Any], arrow: str = ...) -> None: ...
\r
38 def print_title(self) -> None: ...
\r
39 def print_line(self, func: str) -> None: ...
\r