Skip to content

Plot improvements#57

Merged
fabianp merged 5 commits intopythonprofilers:masterfrom
pgervais:plot_options
Aug 27, 2013
Merged

Plot improvements#57
fabianp merged 5 commits intopythonprofilers:masterfrom
pgervais:plot_options

Conversation

@pgervais
Copy link
Copy Markdown
Collaborator

I added a couple of improvements, mainly related to plotting:

  • command-line of profiled command is now stored into profile file. It is displayed by default as graph title
  • memory usage recorded when entering and leaving functions are now integrated on curves, instead of just being shown with brackets.
  • added an option (-t) to mprof plot to manually set the figure title
  • added an option (-n) to mprof plot to prevent display of function timestamps
  • empty profile files are now properly handled by plot, a clear error message is displayed to the user.

Plus some code cleanup.

This option allows to set the title of figures created by 'mprof plot'.
Numpy is still required for plotting, but only when pylab is used.
When interrupting "mprof run", an empty file can be generated, which
caused problem with "mprof plot". A clear error message is now displayed
to the user.
The full command line of what was run during the profiling is now
saved into the profile file. It is used to set the graph title with
'mprof plot'.
Memory usage when entering and leaving a function is now included
with the other measurements. This fixes some discrepancies between
brackets and curves when sampling frequency was low.

Add an option to prevent displaying of timestamps in plots
(mprof plot -n)
@fabianp
Copy link
Copy Markdown
Collaborator

fabianp commented Aug 27, 2013

This is great Philippe, I'll have to upgrade you to co-author of the package :-) (to be fair by now you probably have more code than me).

fabianp added a commit that referenced this pull request Aug 27, 2013
@fabianp fabianp merged commit de1c88c into pythonprofilers:master Aug 27, 2013
@alexpnt
Copy link
Copy Markdown
Contributor

alexpnt commented Aug 28, 2018

I think this could be better documented. I did not know this was an option until I came here looking for similar issues. Anyway, these are great features.

@fabianp
Copy link
Copy Markdown
Collaborator

fabianp commented Aug 28, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants