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

Side by Side Diff: third_party/tcmalloc/chromium/src/stacktrace_generic-inl.h

Issue 9666033: Experiment for updating the tcmalloc chromium branch to r144 (gperftools 2.0). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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) 2005, Google Inc. 1 // Copyright (c) 2005, 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 24 matching lines...) Expand all
35 // Note: The glibc implementation may cause a call to malloc. 35 // Note: The glibc implementation may cause a call to malloc.
36 // This can cause a deadlock in HeapProfiler. 36 // This can cause a deadlock in HeapProfiler.
37 37
38 #ifndef BASE_STACKTRACE_GENERIC_INL_H_ 38 #ifndef BASE_STACKTRACE_GENERIC_INL_H_
39 #define BASE_STACKTRACE_GENERIC_INL_H_ 39 #define BASE_STACKTRACE_GENERIC_INL_H_
40 // Note: this file is included into stacktrace.cc more than once. 40 // Note: this file is included into stacktrace.cc more than once.
41 // Anything that should only be defined once should be here: 41 // Anything that should only be defined once should be here:
42 42
43 #include <execinfo.h> 43 #include <execinfo.h>
44 #include <string.h> 44 #include <string.h>
45 #include "google/stacktrace.h" 45 #include "gperftools/stacktrace.h"
46 #endif // BASE_STACKTRACE_GENERIC_INL_H_ 46 #endif // BASE_STACKTRACE_GENERIC_INL_H_
47 47
48 // Note: this part of the file is included several times. 48 // Note: this part of the file is included several times.
49 // Do not put globals below. 49 // Do not put globals below.
50 50
51 // The following 4 functions are generated from the code below: 51 // The following 4 functions are generated from the code below:
52 // GetStack{Trace,Frames}() 52 // GetStack{Trace,Frames}()
53 // GetStack{Trace,Frames}WithContext() 53 // GetStack{Trace,Frames}WithContext()
54 // 54 //
55 // These functions take the following args: 55 // These functions take the following args:
(...skipping 18 matching lines...) Expand all
74 for (int i = 0; i < result_count; i++) 74 for (int i = 0; i < result_count; i++)
75 result[i] = stack[i + skip_count]; 75 result[i] = stack[i + skip_count];
76 76
77 #if IS_STACK_FRAMES 77 #if IS_STACK_FRAMES
78 // No implementation for finding out the stack frame sizes yet. 78 // No implementation for finding out the stack frame sizes yet.
79 memset(sizes, 0, sizeof(*sizes) * result_count); 79 memset(sizes, 0, sizeof(*sizes) * result_count);
80 #endif 80 #endif
81 81
82 return result_count; 82 return result_count;
83 } 83 }
OLDNEW
« no previous file with comments | « third_party/tcmalloc/chromium/src/stacktrace_config.h ('k') | third_party/tcmalloc/chromium/src/stacktrace_libunwind-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698