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

Side by Side Diff: tools/process_oprofile_x86_64.py

Issue 12450015: **/*.py: use /usr/bin/env to find python Base URL: https://chromium.googlesource.com/native_client/src/native_client@master
Patch Set: Created 7 years, 9 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 unified diff | Download patch
« no previous file with comments | « tools/httpd.py ('k') | tools/process_perf_combined.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """ Post-process Oprofile logs for x86-64 nexes running under sel_ldr. 6 """ Post-process Oprofile logs for x86-64 nexes running under sel_ldr.
7 7
8 Maps event counts in the "anon" region, to the appropriate addresses 8 Maps event counts in the "anon" region, to the appropriate addresses
9 in the nexe assembly. "Anon" represents the untrusted sandbox. 9 in the nexe assembly. "Anon" represents the untrusted sandbox.
10 10
11 This will become unnecessary once we get immutable files for our .nexe 11 This will become unnecessary once we get immutable files for our .nexe
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 else: 477 else:
478 print 'Need assembly file(%s) and oprofile log(%s)!' \ 478 print 'Need assembly file(%s) and oprofile log(%s)!' \
479 % (assembly_file, oprof_log) 479 % (assembly_file, oprof_log)
480 sys.exit(1) 480 sys.exit(1)
481 except getopt.GetoptError, err: 481 except getopt.GetoptError, err:
482 print str(err) 482 print str(err)
483 sys.exit(1) 483 sys.exit(1)
484 484
485 if __name__ == '__main__': 485 if __name__ == '__main__':
486 main(sys.argv) 486 main(sys.argv)
OLDNEW
« no previous file with comments | « tools/httpd.py ('k') | tools/process_perf_combined.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698