forked from bloomberg/pystack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_pystack.pyi
More file actions
61 lines (55 loc) · 1.75 KB
/
_pystack.pyi
File metadata and controls
61 lines (55 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import enum
import pathlib
from typing import Any
from typing import Dict
from typing import Iterable
from typing import List
from typing import Optional
from typing import Tuple
from typing import Union
from .maps import VirtualMap
from .types import PyThread
class CoreFileAnalyzer:
@classmethod
def __init__(cls, *args: Any, **kwargs: Any) -> None: ...
def extract_module_load_points(self) -> Dict[str, int]: ...
def extract_build_ids(self) -> Iterable[Tuple[str, str, str]]: ...
def extract_executable(self) -> pathlib.Path: ...
def extract_failure_info(self) -> Dict[str, Any]: ...
def extract_maps(self) -> Iterable[VirtualMap]: ...
def extract_pid(self) -> int: ...
def extract_ps_info(self) -> Dict[str, Any]: ...
def missing_modules(self) -> List[str]: ...
class NativeReportingMode(enum.Enum):
ALL = 1
OFF = 2
PYTHON = 3
class StackMethod(enum.Enum):
ALL = 1
ANONYMOUS_MAPS = 2
AUTO = 3
BSS = 4
ELF_DATA = 5
HEAP = 6
SYMBOLS = 7
DEBUG_OFFSETS = 8
class ProcessManager: ...
def get_process_threads(
pid: int,
stop_process: bool = True,
native_mode: NativeReportingMode = NativeReportingMode.OFF,
locals: bool = False,
method: StackMethod = StackMethod.AUTO,
) -> Iterable[PyThread]: ...
def get_process_threads_for_core(
core_file: pathlib.Path,
executable: pathlib.Path,
library_search_path: Optional[str] = None,
native_mode: NativeReportingMode = NativeReportingMode.PYTHON,
locals: bool = False,
method: StackMethod = StackMethod.AUTO,
) -> Iterable[PyThread]: ...
def get_bss_info(binary: Union[str, pathlib.Path]) -> Dict[str, Any]: ...
def copy_memory_from_address(
pid: int, address: int, size: int, blocking: bool = False
) -> bytes: ...