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 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 | 931 |
932 # Un-comment to disable interleaved output. Will also suppress error | 932 # Un-comment to disable interleaved output. Will also suppress error |
933 # messages normally printed to stderr. | 933 # messages normally printed to stderr. |
934 #proc += ["-quiet", "-no_results_to_stderr"] | 934 #proc += ["-quiet", "-no_results_to_stderr"] |
935 | 935 |
936 proc += ["-callstack_max_frames", "40"] | 936 proc += ["-callstack_max_frames", "40"] |
937 | 937 |
938 # disable leak scan for now | 938 # disable leak scan for now |
939 proc += ["-no_count_leaks", "-no_leak_scan"] | 939 proc += ["-no_count_leaks", "-no_leak_scan"] |
940 | 940 |
| 941 # crbug.com/413215, no heap mismatch check for Windows release build binary |
| 942 if common.IsWindows() and "Release" in self._options.build_dir: |
| 943 proc += ["-no_check_delete_mismatch"] |
| 944 |
941 # make callstacks easier to read | 945 # make callstacks easier to read |
942 proc += ["-callstack_srcfile_prefix", | 946 proc += ["-callstack_srcfile_prefix", |
943 "build\\src,chromium\\src,crt_build\\self_x86"] | 947 "build\\src,chromium\\src,crt_build\\self_x86"] |
944 proc += ["-callstack_modname_hide", | 948 proc += ["-callstack_modname_hide", |
945 "*drmemory*,chrome.dll"] | 949 "*drmemory*,chrome.dll"] |
946 | 950 |
947 boring_callers = common.BoringCallers(mangled=False, use_re_wildcards=False) | 951 boring_callers = common.BoringCallers(mangled=False, use_re_wildcards=False) |
948 # TODO(timurrrr): In fact, we want "starting from .." instead of "below .." | 952 # TODO(timurrrr): In fact, we want "starting from .." instead of "below .." |
949 proc += ["-callstack_truncate_below", ",".join(boring_callers)] | 953 proc += ["-callstack_truncate_below", ",".join(boring_callers)] |
950 | 954 |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1223 return Asan() | 1227 return Asan() |
1224 try: | 1228 try: |
1225 platform_name = common.PlatformNames()[0] | 1229 platform_name = common.PlatformNames()[0] |
1226 except common.NotImplementedError: | 1230 except common.NotImplementedError: |
1227 platform_name = sys.platform + "(Unknown)" | 1231 platform_name = sys.platform + "(Unknown)" |
1228 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name, | 1232 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name, |
1229 platform_name) | 1233 platform_name) |
1230 | 1234 |
1231 def CreateTool(tool): | 1235 def CreateTool(tool): |
1232 return ToolFactory().Create(tool) | 1236 return ToolFactory().Create(tool) |
OLD | NEW |