OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include <windows.h> | 5 #include <windows.h> |
6 #include <tlhelp32.h> // for CreateToolhelp32Snapshot() | 6 #include <tlhelp32.h> // for CreateToolhelp32Snapshot() |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "tools/memory_watcher/memory_watcher.h" | 9 #include "tools/memory_watcher/memory_watcher.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 std::string output; | 197 std::string output; |
198 stack->ToString(&output); | 198 stack->ToString(&output); |
199 fprintf(file_, "%s", output.c_str()); | 199 fprintf(file_, "%s", output.c_str()); |
200 it++; | 200 it++; |
201 } | 201 } |
202 fprintf(file_, "Total Leaks: %d\n", block_map_->size()); | 202 fprintf(file_, "Total Leaks: %d\n", block_map_->size()); |
203 fprintf(file_, "Total Stacks: %d\n", stack_map_->size()); | 203 fprintf(file_, "Total Stacks: %d\n", stack_map_->size()); |
204 fprintf(file_, "Total Bytes: %d\n", block_map_size_); | 204 fprintf(file_, "Total Bytes: %d\n", block_map_size_); |
205 CloseLogFile(); | 205 CloseLogFile(); |
206 } | 206 } |
207 | |
208 | |
OLD | NEW |