Maybe we could integrated Mesos with Zipkin https://github.com/openzipkin/zipkin , so that it would display the latency more obviously.
On Sat, Apr 23, 2016 at 7:42 AM, Joris Van Remoortere <[email protected]> wrote: > To be clear, BenM's example will result in the total wall-clock time for > the chain to complete, rather than the sum of time actually spent in those > functions. > > > — > *Joris Van Remoortere* > Mesosphere > > On Fri, Apr 22, 2016 at 4:26 PM, Benjamin Mahler <[email protected]> > wrote: > > > Here's an example of using Stopwatch for this: > > > > Future<Nothing> f = Nothing(); > > Stopwatch s; > > > > s.start(); > > f.then(a) > > .then(b) > > .then(c) > > .onAny([s](){ cout << "a->b->c took: " << s.elapsed() << endl; }); > > > > On Fri, Apr 22, 2016 at 3:16 AM, Jian Qiu <[email protected]> > wrote: > > > > > Hi folks, > > > > > > We are trying to do some performance tests for Mesos, and intend to add > > log > > > to output the time duration for different kinds of operation. There is > a > > > Stopwatch class that can calculate the time elapsed for a blocking > call. > > > However, I am wondering if there is some utility to record the time > > elapsed > > > for a async call chain. For instance, Mesos always have a chain like > > > future.then(xxx).onAny..... Is there anyway to calculate the whole > time > > > elapsed of this kind of chain instead of printing out the time stamp? > > > > > > Thanks. > > > > > > Regards > > > Qiu Jian > > > > > > -- Best Regards, Haosdent Huang
