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

Side by Side Diff: tools/memory_watcher/memory_watcher.cc

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « skia/ext/vector_canvas_unittest.cc ('k') | views/view_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "base/lock.h" 11 #include "base/lock.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/stats_counters.h" 13 #include "base/stats_counters.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "base/utf_string_conversions.h"
15 #include "tools/memory_watcher/call_stack.h" 16 #include "tools/memory_watcher/call_stack.h"
16 #include "tools/memory_watcher/preamble_patcher.h" 17 #include "tools/memory_watcher/preamble_patcher.h"
17 18
18 static StatsCounter mem_in_use("MemoryInUse.Bytes"); 19 static StatsCounter mem_in_use("MemoryInUse.Bytes");
19 static StatsCounter mem_in_use_blocks("MemoryInUse.Blocks"); 20 static StatsCounter mem_in_use_blocks("MemoryInUse.Blocks");
20 static StatsCounter mem_in_use_allocs("MemoryInUse.Allocs"); 21 static StatsCounter mem_in_use_allocs("MemoryInUse.Allocs");
21 static StatsCounter mem_in_use_frees("MemoryInUse.Frees"); 22 static StatsCounter mem_in_use_frees("MemoryInUse.Frees");
22 23
23 // --------------------------------------------------------------------- 24 // ---------------------------------------------------------------------
24 25
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 CallStack* stack = stack_track->stack; 245 CallStack* stack = stack_track->stack;
245 PrivateAllocatorString output; 246 PrivateAllocatorString output;
246 stack->ToString(&output); 247 stack->ToString(&output);
247 fprintf(file_, "%s", output.c_str()); 248 fprintf(file_, "%s", output.c_str());
248 } 249 }
249 fprintf(file_, "Total Leaks: %d\n", total_blocks); 250 fprintf(file_, "Total Leaks: %d\n", total_blocks);
250 fprintf(file_, "Total Stacks: %d\n", stack_tracks.size()); 251 fprintf(file_, "Total Stacks: %d\n", stack_tracks.size());
251 fprintf(file_, "Total Bytes: %d\n", total_bytes); 252 fprintf(file_, "Total Bytes: %d\n", total_bytes);
252 CloseLogFile(); 253 CloseLogFile();
253 } 254 }
OLDNEW
« no previous file with comments | « skia/ext/vector_canvas_unittest.cc ('k') | views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698