diff options
author | markus@chromium.org <markus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-18 01:05:59 +0000 |
---|---|---|
committer | markus@chromium.org <markus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-18 01:05:59 +0000 |
commit | 62dc1f04051694ae381488ef44fad336c6260ad6 (patch) | |
tree | 52ddd2c05f774115269541940c3bb32ddffba215 /sandbox/linux/seccomp/getpid.cc | |
parent | ec64212b924d80d3ba5da864812b8dea1132854e (diff) | |
download | chromium_src-62dc1f04051694ae381488ef44fad336c6260ad6.zip chromium_src-62dc1f04051694ae381488ef44fad336c6260ad6.tar.gz chromium_src-62dc1f04051694ae381488ef44fad336c6260ad6.tar.bz2 |
Compute and pring the time that it takes to execute system calls. This data
is going to be skewed slightly, as calling gettimeofday() by itself also
takes a little bit of time. But it should be good enough to allow us to see
where we have performance bottlenecks.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/997009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41905 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/linux/seccomp/getpid.cc')
-rw-r--r-- | sandbox/linux/seccomp/getpid.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sandbox/linux/seccomp/getpid.cc b/sandbox/linux/seccomp/getpid.cc index ad634f1..5b4239b 100644 --- a/sandbox/linux/seccomp/getpid.cc +++ b/sandbox/linux/seccomp/getpid.cc @@ -8,7 +8,9 @@ namespace playground { int Sandbox::sandbox_getpid() { - Debug::syscall(__NR_getpid, "Executing handler"); + long long tm; + Debug::syscall(&tm, __NR_getpid, "Executing handler"); + Debug::elapsed(tm, __NR_getpid); return pid_; } |