incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject Re: view index build time
Date Thu, 03 Jul 2008 08:22:25 GMT

On Jul 3, 2008, at 02:03, Chris Anderson wrote:

> On Wed, Jul 2, 2008 at 4:19 PM, Paul Davis <paul.joseph.davis@gmail.com 
> > wrote:
>> Also, where do the javascript conversions happen? Wouldn't that be in
>> the beam process with mochiweb?
>
> I wonder how the time in beam breaks down between JSON and sorting...
> I wish I had time to learn Erlang profiling techniques.

On the Erlang console (comes when you start CouchDB on the
console with the -i option):

1> couch_server:stop().
...
2> cprof:start().
3>couch_server:start().
...use CouchDB...
4> cprof:pause().
5> cprof:analyse(couch).
...analyse output...
6> cprof:stop().

All this untested (and stolen from Joe's book).

Cheers
Jan
--

Mime
View raw message