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

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

Issue 9320005: [NOT TO COMMIT!] Replace third_party/tcmalloc/chromium with tcmalloc r136 (the latest). (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 10 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 17 matching lines...) Expand all
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 29
30 // --- 30 // ---
31 // Author: Craig Silverstein 31 // Author: Craig Silverstein
32 32
33 #ifndef TCMALLOC_SYMBOLIZE_H_ 33 #ifndef TCMALLOC_SYMBOLIZE_H_
34 #define TCMALLOC_SYMBOLIZE_H_ 34 #define TCMALLOC_SYMBOLIZE_H_
35 35
36 #include "config.h" 36 #include "config.h"
37 #ifdef HAVE_STDINT_H 37 #ifdef HAVE_STDINT_H
38 #include <stddef.h>
39 #include <stdint.h> // for uintptr_t 38 #include <stdint.h> // for uintptr_t
40 #endif 39 #endif
41 #include <stddef.h> // for NULL 40 #include <stddef.h> // for NULL
42 #include <map> 41 #include <map>
43 42
44 using std::map; 43 using std::map;
45 44
46 // SymbolTable encapsulates the address operations necessary for stack trace 45 // SymbolTable encapsulates the address operations necessary for stack trace
47 // symbolization. A common use-case is to Add() the addresses from one or 46 // symbolization. A common use-case is to Add() the addresses from one or
48 // several stack traces to a table, call Symbolize() once and use GetSymbol() 47 // several stack traces to a table, call Symbolize() once and use GetSymbol()
(...skipping 26 matching lines...) Expand all
75 static const int kSymbolSize = 1024; 74 static const int kSymbolSize = 1024;
76 75
77 // Map from addresses to symbol names. 76 // Map from addresses to symbol names.
78 SymbolMap symbolization_table_; 77 SymbolMap symbolization_table_;
79 78
80 // Pointer to the buffer that stores the symbol names. 79 // Pointer to the buffer that stores the symbol names.
81 char *symbol_buffer_; 80 char *symbol_buffer_;
82 }; 81 };
83 82
84 #endif // TCMALLOC_SYMBOLIZE_H_ 83 #endif // TCMALLOC_SYMBOLIZE_H_
OLDNEW
« no previous file with comments | « third_party/tcmalloc/chromium/src/static_vars.cc ('k') | third_party/tcmalloc/chromium/src/symbolize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698