2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
8 from syscalls import syscalls
14 if e['eventtype'] == 'EVENT_TYPE_SYSCALL' and e['done'] > 0:
15 delta = e['done'] - e['ms']
16 syscall = e['syscall']
19 calls[syscall] = calls.get(syscall, 0) + delta
20 print '%f - %f - %x - %d %s' % (
21 delta, ms, tid, syscall, syscalls.get(syscall, 'unknown'))
23 #for syscall, delta in calls.items():
24 # print '%f - %d %s' % (delta, syscall, syscalls.get(syscall, 'unknown'))
31 if __name__ == '__main__':