-
-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create generic histogram performance counter #2327
Comments
@hkaiser Could you please add a project description here https://github.com/STEllAR-GROUP/hpx/wiki/GSoC-2017-Project-Ideas#create-generic-histogram-performance-counter |
I have build HPX on my system.How to build the performance counter? Could you please help me how to start ?What should be my approach? |
@Sumit2318 could we please continue this discussion on our mailing list ( Once you have built HPX, all the performance counters are in place - those are part of HPX itself. Have you read the corresponding documentation about how to use them? If not, it might be a good idea to do that (see: http://stellar-group.github.io/hpx/docs/html/hpx/manual/performance_counters.html and all sub-sections of this). |
Hello @hkaiser Sir, I am working on this issue and combining this project with "Add more Arithmetic Performance Counters" for the coming GSOC 2018. So, during the work, I have found a histogram implementation in the HPX. Hence, I am thinking to take the help of this code to implement Histogram performance counter.
Please suggest !! |
The data is entered by invoking the operator()() on the histogram object (https://github.com/STEllAR-GROUP/hpx/blob/master/hpx/util/histogram.hpp#L107)
You might want to familiarize yourself with the Boost.Accumulators library (http://www.boost.org/doc/libs/1_66_0/doc/html/accumulators.html). The extractor is the facility used by this library to access the data in a generic way.
In order to represent values collected as a histogram you need two values for each of the histogram bins: the position of the bin and the number of values in that bin. We have created one histogram counter in HPX to collect various timings from the parcel coalescing module ( The idea for the generic histogram counter would be to to collect histograms on top of an any other counter, very much like the other statistics counters. This histogram counter should expose the collected data in the same way as the existing |
Thanks a lot @hkaiser sir!! I will study those files and then communicate with you if I got any problem. |
Hello Sir!! @hkaiser @msimberg, I have figured out some steps needed for implementing new histogram performance counter. As it is implemented similar to the statistics performance counter so I am going to implement new performance counter in src/performance_counters/server in HPX.
Please suggest whether I am thiking in right direction or not. |
Sounds like a plan to me. |
@hkaiser Hello Sir!! I want to ask one thing, is there anything in HPX which has visual or pictorial representation. Actually, I am thinking (for future plan ) that if it is possible to implement histogram pictorially so that it would be much easier to gather information from it. Also if it is possible Can you suggest some ideas to add in histogram performance counter . |
There is no pictorial representation for the histograms yet, at least nothing coherent. We've been using some python scripts to parse the generated output. Such a script would be a nice addition to your GSoC plan, I think.
I'm not sure what you're looking for. The idea is to create a performance counter that produces a histogram from the results returned by invoking any other counter several times. The naming scheme for this counter would be similar to that of the other statistics counters., The histogram counter would invoke any other given counter at a predefined time interval, collect the data retrieved and expose it as its result (the histogram). |
@hkaiser Hello Sir!! One more thing as you have suggested that I have to implement it like |
@victor-ludorum you're right, we don't have extensive tests for our performance counters. Feel free to come up with a new scheme to test those.
Feel free to use what you see. Most probably you will have to modify things here and there to make it fit into your plans, however. |
@hkaiser Thanks, Sir!! I have done some work. Please have a review if you got some time. This is the link (victor-ludorum#2). |
@victor-ludorum yes, I have seen this. I think @msimberg has done a nice review and has put together a comprehensive list of comments for you to work on. |
@hkaiser Okay Sir!! Thanks a lot!! I will follow yours and Simberg Sir advice. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed. Please re-open if necessary. |
This could be done similarily to the statistics counter which calculates the mean of the values periodically extracted from any other counter.
The text was updated successfully, but these errors were encountered: