Developer Tools

PyCprofile

Python stdlib module — cProfile. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.label()Neutral
#
Signature
label(code)

label function.

.main()Neutral
#
Signature
main()

main function.

.run()Neutral
#
Signature
run(statement, filename, sort)

Run statement under profiler optionally saving results in filename

.runctx()Neutral
#
Signature
runctx(statement, globals, locals, filename, sort)

Run statement under profiler, supplying your own globals and locals,

.Profile()Neutral
#
Signature
Profile(...)

Profile(timer=None, timeunit=None, subcalls=True, builtins=True)

Fully-Qualified Names

FQNField
cProfilefqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import cProfile