OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Runs an exe through Valgrind and puts the intermediate files in a | 5 """Runs an exe through Valgrind and puts the intermediate files in a |
6 directory. | 6 directory. |
7 """ | 7 """ |
8 | 8 |
9 import datetime | 9 import datetime |
10 import glob | 10 import glob |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 | 705 |
706 # Un-comment to disable interleaved output. Will also suppress error | 706 # Un-comment to disable interleaved output. Will also suppress error |
707 # messages normally printed to stderr. | 707 # messages normally printed to stderr. |
708 #proc += ["-quiet", "-no_results_to_stderr"] | 708 #proc += ["-quiet", "-no_results_to_stderr"] |
709 | 709 |
710 proc += ["-callstack_max_frames", "40"] | 710 proc += ["-callstack_max_frames", "40"] |
711 | 711 |
712 # disable leak scan for now | 712 # disable leak scan for now |
713 proc += ["-no_count_leaks", "-no_leak_scan"] | 713 proc += ["-no_count_leaks", "-no_leak_scan"] |
714 | 714 |
| 715 # disable warnings about unaddressable prefetches |
| 716 proc += ["-no_check_prefetch"] |
| 717 |
715 # crbug.com/413215, no heap mismatch check for Windows release build binary | 718 # crbug.com/413215, no heap mismatch check for Windows release build binary |
716 if common.IsWindows() and "Release" in self._options.build_dir: | 719 if common.IsWindows() and "Release" in self._options.build_dir: |
717 proc += ["-no_check_delete_mismatch"] | 720 proc += ["-no_check_delete_mismatch"] |
718 | 721 |
719 # make callstacks easier to read | 722 # make callstacks easier to read |
720 proc += ["-callstack_srcfile_prefix", | 723 proc += ["-callstack_srcfile_prefix", |
721 "build\\src,chromium\\src,crt_build\\self_x86"] | 724 "build\\src,chromium\\src,crt_build\\self_x86"] |
722 proc += ["-callstack_modname_hide", | 725 proc += ["-callstack_modname_hide", |
723 "*drmemory*,chrome.dll"] | 726 "*drmemory*,chrome.dll"] |
724 | 727 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 return DrMemory(False, True) | 825 return DrMemory(False, True) |
823 try: | 826 try: |
824 platform_name = common.PlatformNames()[0] | 827 platform_name = common.PlatformNames()[0] |
825 except common.NotImplementedError: | 828 except common.NotImplementedError: |
826 platform_name = sys.platform + "(Unknown)" | 829 platform_name = sys.platform + "(Unknown)" |
827 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name, | 830 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name, |
828 platform_name) | 831 platform_name) |
829 | 832 |
830 def CreateTool(tool): | 833 def CreateTool(tool): |
831 return ToolFactory().Create(tool) | 834 return ToolFactory().Create(tool) |
OLD | NEW |