I recently wanted to share some qpmset files I made with my coworkers. I faced the issue that you save the hostname into the qpmset files. Although this is totally makes senses as this is part of the perf counter path and allow to monitor processes on remote machines, this makes difficult to share qpmset files for monitoring local processes. I made a script that changes the hostname to the localhost before starting QPerfMon but this is not ideal. It would be better if QPerfMon could do it itself ;)
So here's my proposal: add the ability to indicate to QPerfMon that it should replace the machine name with the current machine name when loading a qpmset file.
I thought about two ways to achieve this:
- It could be done with a simple check box like "force local" in the performance counter selection dialog. The information would be saved in the qpmset file with each perf counter.
- An other way would be to add a command line switch (in this case, this would be for all perf counter of a qpmset file).
I can try to hack the code and submit a patch if you want.