From 18dccd18565763459ecb49434db81c9bf8b5fab3 Mon Sep 17 00:00:00 2001 From: Peter Bowyer Date: Fri, 23 Oct 2015 08:30:48 +0100 Subject: [PATCH] Warn about memory_profiler/mprof interplay This took me time to track down - running memory_profiler in a script run via mprof will prevent the function timings being recorded & plotted on the graph. --- README.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rst b/README.rst index 6ea014b..2221801 100644 --- a/README.rst +++ b/README.rst @@ -143,6 +143,8 @@ afterward will plot the result, making plots (using matplotlib) similar to these A discussion of these capabilities can be found `here `_. +.. warning:: If your Python file imports the memory profiler `from memory_profiler import profile` these timestamps will not be recorded. Comment out the import, leave your functions decorated, and re-run. + The available commands for `mprof` are: - ``mprof run``: running an executable, recording memory usage