What does "Wall Duration" mean for?

4,712 views
Skip to first unread message

Hongbo Min

unread,
Jul 29, 2014, 4:50:39 AM7/29/14
to chromi...@chromium.org
Hi,

I found a new duration kind is added to chrome://tracing result view, it is called "Wall Duration". What does it stand for from cpu profiling perspective?

For example, the below is a example of ThreadProxy::BeginFrame tracing result:

Start 5179.077 ms
Wall Duration 17.242 ms
CPU Duration  8.361 ms
Self Time 0.061 ms
CPU Self Time 0.153 ms

The result shows the Wall Duration is 17.242ms, while CPU duration 8.361ms. 

Can we trust "Wall Duration" as the overhead of a code block traced?

Thanks...Hongbo


Mike Frysinger

unread,
Jul 29, 2014, 5:03:45 AM7/29/14
to hongb...@gmail.com, chromi...@chromium.org
it's short for "wall clock" as in "look at the clock on the wall to see how much time has passed" :)
-mike


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Primiano Tucci

unread,
Jul 29, 2014, 8:26:01 AM7/29/14
to Mike Frysinger, hongb...@gmail.com, chromi...@chromium.org
Just for sake of clarity, note that CPU time is the active cpu time.
In other words if you have a piece of code like "x +=1; sleep(1)", the wall time will be 1+ε seconds, the cpu time will be ε (the time that it takes to do compute a sum)
In other words, the CPU time does not advance when your process is suspended (on a mutex, on I/O, on a sleep, etc).
Reply all
Reply to author
Forward
0 new messages