[erlang-questions] optimizing an asynchronous architecture

Cliff Moon <>
Tue Jul 7 23:21:16 CEST 2009


http://github.com/cliffmoon/dynomite/blob/b621762c1d052f8e4e85f5f4e057ed04389014d2/elibs/storage_server.erl

That's where it gets used the most.  The nice thing about this 
implementation is that you can nest the timings however you want and it 
will not get different labels confused with one another.

Joel Reymont wrote:
> Cliff,
>
> Do you have any usage examples?
>
> I'm using a home-grown stats server myself. It keeps track of min, 
> max, avg, etc. values for any label I choose and dumps accumulated 
> stats every so often.
>
>     Thanks, Joel
>
> On Jul 7, 2009, at 9:59 PM, Cliff Moon wrote:
>
>> One technique that I was successful in using was timing exit and 
>> entry points for the various servers I was interested in using a one 
>> off profiling server to collect the statistics.  Code for the 
>> profiling server is here:
>>
>> http://github.com/cliffmoon/dynomite/blob/b621762c1d052f8e4e85f5f4e057ed04389014d2/elibs/dynomite_prof.erl 
>>
>>
>> And profiling is turned off or on via a macro during the build:
>>
>> http://github.com/cliffmoon/dynomite/blob/cfe6dd6768d39a268ff2d49203bb2b70e19cba16/include/profile.hrl 
>>
>
> ---
> Mac hacker with a performance bent
> http://www.linkedin.com/in/joelreymont
>
>



More information about the erlang-questions mailing list