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

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

Issue 1076002: Revert 41938 - Merged third_party/tcmalloc/vendor/src(googleperftools r87) in... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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];
215 #else 212 #else
216 int fd_; // filehandle on /proc/*/maps 213 int fd_; // filehandle on /proc/*/maps
217 #endif 214 #endif
218 pid_t pid_;
219 char flags_[10]; 215 char flags_[10];
220 Buffer* dynamic_buffer_; // dynamically-allocated Buffer 216 Buffer* dynamic_buffer_; // dynamically-allocated Buffer
221 bool using_maps_backing_; // true if we are looking at maps_backing instead of maps. 217 bool using_maps_backing_; // true if we are looking at maps_backing instead of maps.
222 }; 218 };
223 219
224 #endif /* #ifndef SWIG */ 220 #endif /* #ifndef SWIG */
225 221
226 // Helper routines 222 // Helper routines
227 223
228 namespace tcmalloc { 224 namespace tcmalloc {
229 int FillProcSelfMaps(char buf[], int size); 225 int FillProcSelfMaps(char buf[], int size);
230 void DumpProcSelfMaps(RawFD fd); 226 void DumpProcSelfMaps(RawFD fd);
231 } 227 }
232 228
233 #endif /* #ifndef _SYSINFO_H_ */ 229 #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