massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / profile.pyi
1 from _typeshed import StrOrBytesPath
2 from typing import Any, Callable, Tuple, TypeVar
3
4 def run(statement: str, filename: str | None = ..., sort: str | int = ...) -> None: ...
5 def runctx(
6     statement: str, globals: dict[str, Any], locals: dict[str, Any], filename: str | None = ..., sort: str | int = ...
7 ) -> None: ...
8
9 _SelfT = TypeVar("_SelfT", bound=Profile)
10 _T = TypeVar("_T")
11 _Label = Tuple[str, int, str]
12
13 class Profile:
14     bias: int
15     stats: dict[_Label, tuple[int, int, int, int, dict[_Label, tuple[int, int, int, int]]]]  # undocumented
16     def __init__(self, timer: Callable[[], float] | None = ..., bias: int | None = ...) -> None: ...
17     def set_cmd(self, cmd: str) -> None: ...
18     def simulate_call(self, name: str) -> None: ...
19     def simulate_cmd_complete(self) -> None: ...
20     def print_stats(self, sort: str | int = ...) -> None: ...
21     def dump_stats(self, file: StrOrBytesPath) -> None: ...
22     def create_stats(self) -> None: ...
23     def snapshot_stats(self) -> None: ...
24     def run(self: _SelfT, cmd: str) -> _SelfT: ...
25     def runctx(self: _SelfT, cmd: str, globals: dict[str, Any], locals: dict[str, Any]) -> _SelfT: ...
26     def runcall(self, __func: Callable[..., _T], *args: Any, **kw: Any) -> _T: ...
27     def calibrate(self, m: int, verbose: int = ...) -> float: ...