avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leif Mortenson <l...@silveregg.co.jp>
Subject Re: Commit: New AltProfile package as reference implementation for an alternate Profiling system.
Date Wed, 06 Mar 2002 06:48:18 GMT
Leif Mortenson wrote:

>Also, currently the state files are quite large because each of the
>sample data points are saved
>as an element. This also makes for slow loading and saving.
>I was thinking of storing the values as a large element like this:
><history>10,23,23, ... ,15, 16</history>
>rather than this:
Ok, I went ahead and implemented this as the default behavior for the
profiler manager.
It will read state files in either format, but the method can be set for
writes using the
use-compact-samples attribute in profiler.xml:

|<profiler logger="pm">
| <state-file interval="60000"
| <profilables>
| ...

Using the compact format makes the files about 10% the size, and the
state saves and loads are
about 85% faster. For the cases where you really need the full XML data,
the attribute can be
set to false.


To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>

View raw message