Hi
my application has to draw onto a dynamical graph the time history of the pressure level produced by a compressor. The data points are acquired every second. I noticed that the update of the graph takes more ad more time (starting from 500 ms up to 2000 ms after 6 hours of execution).
Please notice that
a) the timeseries dataset are "trimmed" to fixed extent of 300 points, using
the .delete method removing the first point.
b) running Jprofiler i noticed that the update of the graph takes more and more time and more and more CPU time. Why?
Any ideas, suggestions?
Thank you
neri alamanni
decreasing performances
Re: decreasing performances
Hi Neri,
Did you write your own code to "trim" the dataset?
If you are using the BasicTimeSeries class, there are two ways (new in 0.9.4) to limit the amount of data retained in the dataset, setHistoryCount(int) and setMaximumItemCount(int). It sounds like you should use setMaximumItemCount(300) for your dataset.
If that doesn't help, can you send me a sample application that illustrates the problem?
Regards,
DG
Did you write your own code to "trim" the dataset?
If you are using the BasicTimeSeries class, there are two ways (new in 0.9.4) to limit the amount of data retained in the dataset, setHistoryCount(int) and setMaximumItemCount(int). It sounds like you should use setMaximumItemCount(300) for your dataset.
If that doesn't help, can you send me a sample application that illustrates the problem?
Regards,
DG
Re: decreasing performances
Hi Dave
thanks for the tip. I 'll keep you informed about the results
thanks again
neri
thanks for the tip. I 'll keep you informed about the results
thanks again
neri