Python stdlib module — pstats. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.add_callers()Neutraladd_callers(target, source)
Combine two caller lists in a single list.
.add_func_stats()Neutraladd_func_stats(target, source)
Add together all the stats for two profile entries.
.count_calls()Neutralcount_calls(callers)
Sum the caller statistics to get total number of calls received.
.dataclass()Neutraldataclass(cls, init, repr, eq, order, unsafe_hash, frozen, match_args, kw_only, slots, weakref_slot)
Add dunder methods based on the fields defined in the class.
.func_get_function_name()Neutralfunc_get_function_name(func)
func_get_function_name function.
.FunctionProfile()NeutralFunctionProfile(...)
FunctionProfile(ncalls: str, tottime: float, percall_tottime: float, cumtime: float, percall_cumtime: float, file_name: str, line_number: int)
| FQN | Field | |
|---|---|---|
| pstats | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
import pstats