Added a trend line switch "-s"#269
Conversation
|
|
||
| if show_trend_slope: | ||
| # Plot the trend line | ||
| pl.plot(t, t*mem_trend[0] + mem_trend[1], "--", linewidth=0.5, color="#00e3d8") |
There was a problem hiding this comment.
why so thin? It's barely visible in my screen. I would use linewidth=2
There was a problem hiding this comment.
I've set it that thin because the line itself is "illustrative", having some visual feedback is nice but think that the actual value of this feature is the numeric slope in the label.
That said, I don't have any issue making it width 2
|
Another issue is that it doesn't seem that images/trend_slope.png is used (or I couldn't find where it is used) |
It was meant for being included in the README documentation, but I've seen that the other images use an absolute path and I've finally left it out (I have to learn how to do this properly in github, any clues are welcome). |
|
merging, please send another pull request to make use of the image |
I've added an experimental switch "-s" in order to plot illustrative trend lines and the actual trend slope in the labels.
I've found it useful for myself and I'm sharing it.
Intended usage : After running the profiling over a significant time period, if the slope reads >0 it might mean a memory leak.
Please just ping me if there is any issue, suggestion or comment.