MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / Finalize

Function Finalize

pkg/filament/cpython/interpreter.go:72–74  ·  view source on GitHub ↗

Finalize undos all initializations made by Initialize() and subsequent use of Python/C API functions, and destroys all sub-interpreters that were created and not yet destroyed since the last call to Initialize(). Ideally, this frees all memory allocated by the Python interpreter.

()

Source from the content-addressed store, hash-verified

70// and destroys all sub-interpreters that were created and not yet destroyed since the last call to Initialize().
71// Ideally, this frees all memory allocated by the Python interpreter.
72func Finalize() {
73 C.Py_Finalize()
74}
75
76// AddPythonPath adds a new path to the PYTHONPATH environment variable.
77func AddPythonPath(path string) {

Callers 8

TestProduceEventDictFunction · 0.92
TestGILLockFunction · 0.85
TestGILUnlockFunction · 0.85
TestInitializeFunction · 0.85
TestNewModuleFunction · 0.85
TestModuleRegisterFnFunction · 0.85

Calls

no outgoing calls

Tested by 8

TestProduceEventDictFunction · 0.74
TestGILLockFunction · 0.68
TestGILUnlockFunction · 0.68
TestInitializeFunction · 0.68
TestNewModuleFunction · 0.68
TestModuleRegisterFnFunction · 0.68