Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: tools/cygprofile/symbolize.py

Issue 272393004: Make cygprofile use clock_gettime() instead of gettimeofday(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Egor's comment Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/cygprofile/mergetraces.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cygprofile/symbolize.py
diff --git a/tools/cygprofile/symbolize.py b/tools/cygprofile/symbolize.py
index 694ae54f9b0728a02b9865d61eaf157240bfaaf1..027da57a521ac95975d598e60687ae50877c2aba 100755
--- a/tools/cygprofile/symbolize.py
+++ b/tools/cygprofile/symbolize.py
@@ -26,7 +26,7 @@ def ParseLogLines(log_file_lines):
Below is an example of a small log file:
5086e000-52e92000 r-xp 00000000 b3:02 51276 libchromeview.so
- secs msecs pid:threadid func
+ secs usecs pid:threadid func
START
1314897086 795828 3587:1074648168 0x509e105c
1314897086 795874 3587:1074648168 0x509e0eb4
@@ -35,7 +35,7 @@ def ParseLogLines(log_file_lines):
END
Returns:
- call_info list with list of tuples of the format (sec, msec, call id,
+ call_info list with list of tuples of the format (sec, usec, call id,
function address called)
"""
call_lines = []
@@ -54,12 +54,12 @@ def ParseLogLines(log_file_lines):
# Convert strings to int in fields.
call_info = []
for call_line in call_lines:
- (sec_timestamp, msec_timestamp) = map(int, call_line[0:2])
+ (sec_timestamp, usec_timestamp) = map(int, call_line[0:2])
callee_id = call_line[2]
addr = int(call_line[3], 16)
if vm_start < addr:
addr -= vm_start
- call_info.append((sec_timestamp, msec_timestamp, callee_id, addr))
+ call_info.append((sec_timestamp, usec_timestamp, callee_id, addr))
return call_info
« no previous file with comments | « tools/cygprofile/mergetraces.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698