blob: 21fe1d5b3b4766b488df8368fdb3d2f306b029cc [file] [log] [blame]
koder aka kdanilov22d134e2016-11-08 11:33:19 +02001from typing import NamedTuple, TypeVar, Callable, Any, Optional, List, Iterable, Dict, Tuple
2
koder aka kdanilov22d134e2016-11-08 11:33:19 +02003Pid = TypeVar('Pid', str)
4AnyFunc = TypeVar('AnyFunc', Callable[..., Any])
5PrefixList = Optional[List[str]]
koder aka kdanilov70227062016-11-26 23:23:21 +02006SensorDict = Dict[str, int]
koder aka kdanilov22d134e2016-11-08 11:33:19 +02007
8def provides(name: str) -> Callable[[AnyFunc], AnyFunc]: ...
koder aka kdanilov70227062016-11-26 23:23:21 +02009def is_dev_accepted(name: str, disallowed_prefixes: PrefixList, allowed_prefixes: PrefixList) -> bool: ...
koder aka kdanilov22d134e2016-11-08 11:33:19 +020010def get_pid_name(pid: Pid) -> str: ...
koder aka kdanilov22d134e2016-11-08 11:33:19 +020011def pid_stat(pid: Pid) -> float: ...
12def get_mem_stats(pid : Pid) -> Tuple[int, int]: ...
koder aka kdanilov70227062016-11-26 23:23:21 +020013def get_ram_size() -> int: ...
koder aka kdanilov22d134e2016-11-08 11:33:19 +020014
koder aka kdanilov70227062016-11-26 23:23:21 +020015def io_stat(disallowed_prefixes: PrefixList, allowed_prefixes: PrefixList) -> int: ...
16def net_stat(disallowed_prefixes: PrefixList, allowed_prefixes: PrefixList) -> int: ...
17def pscpu_stat(disallowed_prefixes: PrefixList, allowed_prefixes: PrefixList) -> int: ...
18def psram_stat(disallowed_prefixes: PrefixList, allowed_prefixes: PrefixList) -> int: ...
19def syscpu_stat(disallowed_prefixes: PrefixList, allowed_prefixes: PrefixList) -> int: ...
20def sysram_stat(disallowed_prefixes: PrefixList, allowed_prefixes: PrefixList) -> int: ...
21
22