Comments (9)
I just pushed a new branch named master-improve-plotting-script
where I tried to address this issue. I tried to beautify the axis/legend labels, properly assign the units etc. This also addresses the plotting issues mentioned in #64.
Some examples are:
./prmon_plot.py --xvar wtime --yvar vmem,pss,rss --stacked
./prmon_plot.py --xvar wtime --yvar utime,stime,wtime
./prmon_plot.py --xvar wtime --yvar utime,stime --diff
./prmon_plot.py --xvar wtime --yvar rx_bytes,tx_bytes --diff
Could you give it a shot and let me know? Let me tag @graeme-a-stewart in case he also wants to comment.
Many thanks.
-s
from prmon.
@amete - thanks! My suggestion is that one can somehow scale the y-axis into a fixed unit size, e.g., GB or kB/s. When I see memory in "kB * 1e8" I have to do quite some mental gymnastics to realise that 0.2 = 20GB.
BTW, I like a lot plotting the time in relative seconds instead of the actual GMT clock time - much more useful.
from prmon.
Thanks @graeme-a-stewart. I guess we can easily pass a multiplier (for both x and y axes) or allow the user to choose from a list of possible options (kb, mb, gb etc.). Prior gives more freedom but makes it a bit cumbersome to decide what units we should write to the label while the latter is more restrictive but eases the second issue. I believe the mainline usage would be just to convert either memory/data-transfer or time from the default units to more meaningful ones (i.e. kb2gb and sec2min). So, perhaps the second option would suffice?
from prmon.
I just implemented and push the updated script that allows the user to change the units of the x/y-axes. The usage is like:
./prmon_plot.py --xunit MIN --yunit GB
:
./prmon_plot.py --xunit MIN --yunit GB --diff
:
I can add a further protection that checks the consistency between the variable and the unit, i.e. throw an error if one tries --xvar pss --xunit SEC
etc. but I'm not super sure if this is really necessary, maybe I'm being over cautious?
-s
from prmon.
I am in favour of letting the user to choose the unit (any default is fine if the user can override it).
I was wondering if we can just get rid of " obtained from PrMon output", it makes the title unnecessarily long.
from prmon.
Sure, I can strip that part to make the title short. Do we want to mention PrMon in some part of the plot?
from prmon.
I don't see the need, personally.
from prmon.
Cool, I just pushed the changes w/ the shortened title.
from prmon.
Fixed with #66
from prmon.
Related Issues (20)
- Protect monotonic increasing stats against race conditions
- Count number of active CPUs for monitored processes HOT 2
- Rename master branch to main HOT 3
- spdlog vs boost.log for prmon logging HOT 7
- Fix compilation issues under gcc11 HOT 1
- Network monitor not properly initialised
- Cleanup CI HOT 3
- Improve Python to be more Python3 native HOT 1
- error on make -j8
- Submodule missing from source tarball HOT 2
- prmon v3.0.0 compilation problem with clang10/13
- Improve logging output handling
- Update spdlog
- Should we try to support prmon on OS X? HOT 1
- Add support for smaps_rollup HOT 3
- Add CITATION.cff file
- Need to update CMake policy
- Review gtest version HOT 1
- prmon doesn't seem to handle SIGUSR1 correctly in the ATLAS grid jobs HOT 2
- PrMon in conda-forge? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prmon.