MCPcopy Index your code
hub / github.com/pythonprofilers/memory_profiler / write

Method write

memory_profiler.py:1290–1298  ·  view source on GitHub ↗
(self, msg, level=logging.INFO)

Source from the content-addressed store, hash-verified

1288 self.reportIncrementFlag = reportIncrementFlag
1289
1290 def write(self, msg, level=logging.INFO):
1291 if self.reportIncrementFlag:
1292 if "MiB" in msg and float(msg.split("MiB")[1].strip()) > 0:
1293 self.logger.log(level, msg)
1294 elif msg.__contains__("Filename:") or msg.__contains__(
1295 "Line Contents"):
1296 self.logger.log(level, msg)
1297 else:
1298 self.logger.log(level, msg)
1299
1300 def flush(self):
1301 for handler in self.logger.handlers:

Callers 11

memory_usageFunction · 0.80
_find_scriptFunction · 0.80
show_resultsMethod · 0.80
trace_max_memMethod · 0.80
show_resultsFunction · 0.80
mprunMethod · 0.80
run_actionFunction · 0.80
write_lineFunction · 0.80
test_exit_code_failMethod · 0.80

Calls

no outgoing calls

Tested by 4

write_lineFunction · 0.64
test_exit_code_failMethod · 0.64