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

Side by Side Diff: third_party/tcmalloc/chromium/src/stack_trace_table.h

Issue 7050034: Merge google-perftools r109 (the current contents of third_party/tcmalloc/vendor) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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) 2009, Google Inc. 1 // Copyright (c) 2009, 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 18 matching lines...) Expand all
29 29
30 // --- 30 // ---
31 // Author: Andrew Fikes 31 // Author: Andrew Fikes
32 // 32 //
33 // Utility class for coalescing sampled stack traces. Not thread-safe. 33 // Utility class for coalescing sampled stack traces. Not thread-safe.
34 34
35 #ifndef TCMALLOC_STACK_TRACE_TABLE_H_ 35 #ifndef TCMALLOC_STACK_TRACE_TABLE_H_
36 #define TCMALLOC_STACK_TRACE_TABLE_H_ 36 #define TCMALLOC_STACK_TRACE_TABLE_H_
37 37
38 #include <config.h> 38 #include <config.h>
39 #ifdef HAVE_STDINT_H
40 #include <stdint.h> // for uintptr_t
41 #endif
39 #include "common.h" 42 #include "common.h"
40 43
41 namespace tcmalloc { 44 namespace tcmalloc {
42 45
43 class PERFTOOLS_DLL_DECL StackTraceTable { 46 class PERFTOOLS_DLL_DECL StackTraceTable {
44 public: 47 public:
45 // REQUIRES: L < pageheap_lock 48 // REQUIRES: L < pageheap_lock
46 StackTraceTable(); 49 StackTraceTable();
47 ~StackTraceTable(); 50 ~StackTraceTable();
48 51
(...skipping 30 matching lines...) Expand all
79 82
80 bool error_; 83 bool error_;
81 int depth_total_; 84 int depth_total_;
82 int bucket_total_; 85 int bucket_total_;
83 Bucket** table_; 86 Bucket** table_;
84 }; 87 };
85 88
86 } // namespace tcmalloc 89 } // namespace tcmalloc
87 90
88 #endif // TCMALLOC_STACK_TRACE_TABLE_H_ 91 #endif // TCMALLOC_STACK_TRACE_TABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698