MCPcopy Index your code
hub / github.com/nodejs/node / log_stats

Method log_stats

deps/v8/tools/testrunner/local/process_utils.py:48–54  ·  view source on GitHub ↗

When wrapped, logs memory statistics of the Popen process argument. This base-class version can be used as a null object to turn off the feature, yielding null-object stats.

(self, process)

Source from the content-addressed store, hash-verified

46class EmptyProcessLogger:
47 @contextmanager
48 def log_stats(self, process):
49 """When wrapped, logs memory statistics of the Popen process argument.
50
51 This base-class version can be used as a null object to turn off the
52 feature, yielding null-object stats.
53 """
54 yield ProcessStats()
55
56 @contextmanager
57 def log_system_memory(self, log_path):

Callers 2

test_nullMethod · 0.45
executeMethod · 0.45

Calls 1

ProcessStatsClass · 0.85

Tested by 1

test_nullMethod · 0.36