Page 1 of 1

Problem with data from perfmon (windows performance logging)

Posted: Fri Sep 12, 2008 9:35 am
by lkoops
When perfmon cannot get a datapoint (due to limited resources), it writes the data as a quoted space like so:

Code: Select all

," ",
Dplot will not display any more data from the file when it encounters this.

If I change it so that the data is empty quotes, it is handled just fine.

Code: Select all

,"",
I don't know if this is a big deal to fix, or if there is a reason to not fix this. I use dplot to visualize performance logs because perfmon charts are hard to read from, they don't display the time axis, and they look unprofessional.

For those who are encountering this, the following sed script/command will fix up your data (I got sed and other unix commands from http://www.cygwin.com). It is quoted to suite the windows command shell. May need modification for unix/linux shells.

Code: Select all

sed "{s/\"\ \"/\"\"/g}"
Thanks for an excellent product at a very low price.

-Luke

Posted: Fri Sep 12, 2008 4:12 pm
by DPlotAdmin
Luke,
Thanks for your input.

What DPlot is doing there is interpreting " " as a text string rather than a number. Since that data type is different than the corresponding column in the previous row, it reasons that it must be past the end of the data. I'll have to think on this one a bit and make sure I don't foul up some other possibility by "fixing" it.