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

Side by Side Diff: third_party/tcmalloc/chromium/src/base/sysinfo.h

Issue 576001: Merged third_party/tcmalloc/vendor/src(google-perftools r87) into... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Removed the unnecessary printf and ASSERT(0) Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006, Google Inc. 1 // Copyright (c) 2006, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 # ifdef MODULEENTRY32 // Alias of W 202 # ifdef MODULEENTRY32 // Alias of W
203 # undef MODULEENTRY32 203 # undef MODULEENTRY32
204 MODULEENTRY32 module_; // info about current dll (and dll iterator) 204 MODULEENTRY32 module_; // info about current dll (and dll iterator)
205 # define MODULEENTRY32 MODULEENTRY32W 205 # define MODULEENTRY32 MODULEENTRY32W
206 # else // It's the ascii, the one we want. 206 # else // It's the ascii, the one we want.
207 MODULEENTRY32 module_; // info about current dll (and dll iterator) 207 MODULEENTRY32 module_; // info about current dll (and dll iterator)
208 # endif 208 # endif
209 #elif defined(__MACH__) 209 #elif defined(__MACH__)
210 int current_image_; // dll's are called "images" in macos parlance 210 int current_image_; // dll's are called "images" in macos parlance
211 int current_load_cmd_; // the segment of this dll we're examining 211 int current_load_cmd_; // the segment of this dll we're examining
212 #elif defined(__sun__) // Solaris
213 int fd_;
214 char current_filename_[PATH_MAX];
212 #else 215 #else
213 int fd_; // filehandle on /proc/*/maps 216 int fd_; // filehandle on /proc/*/maps
214 #endif 217 #endif
218 pid_t pid_;
215 char flags_[10]; 219 char flags_[10];
216 Buffer* dynamic_buffer_; // dynamically-allocated Buffer 220 Buffer* dynamic_buffer_; // dynamically-allocated Buffer
217 bool using_maps_backing_; // true if we are looking at maps_backing instead of maps. 221 bool using_maps_backing_; // true if we are looking at maps_backing instead of maps.
218 }; 222 };
219 223
220 #endif /* #ifndef SWIG */ 224 #endif /* #ifndef SWIG */
221 225
222 // Helper routines 226 // Helper routines
223 227
224 namespace tcmalloc { 228 namespace tcmalloc {
225 int FillProcSelfMaps(char buf[], int size); 229 int FillProcSelfMaps(char buf[], int size);
226 void DumpProcSelfMaps(RawFD fd); 230 void DumpProcSelfMaps(RawFD fd);
227 } 231 }
228 232
229 #endif /* #ifndef _SYSINFO_H_ */ 233 #endif /* #ifndef _SYSINFO_H_ */
OLDNEW
« no previous file with comments | « third_party/tcmalloc/chromium/src/base/spinlock.h ('k') | third_party/tcmalloc/chromium/src/base/sysinfo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698