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

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

Issue 43082: NO CODE CHANGE (Closed)
Patch Set: Created 11 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
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"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « tools/memory_watcher/memory_watcher.h ('k') | tools/traceline/traceline/sidestep/mini_disassembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698