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

Side by Side Diff: third_party/tcmalloc/chromium/src/profile-handler.h

Issue 9311003: Update the tcmalloc chromium branch to r144 (gperftools 2.0), and merge chromium-specific changes. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebasec 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) 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void ProfileHandlerReset(); 130 void ProfileHandlerReset();
131 131
132 /* 132 /*
133 * Stores profile handler's current state. This function is not 133 * Stores profile handler's current state. This function is not
134 * async-signal-safe. 134 * async-signal-safe.
135 */ 135 */
136 struct ProfileHandlerState { 136 struct ProfileHandlerState {
137 int32 frequency; /* Profiling frequency */ 137 int32 frequency; /* Profiling frequency */
138 int32 callback_count; /* Number of callbacks registered */ 138 int32 callback_count; /* Number of callbacks registered */
139 int64 interrupts; /* Number of interrupts received */ 139 int64 interrupts; /* Number of interrupts received */
140 bool allowed; /* Profiling is allowed */
140 }; 141 };
141 void ProfileHandlerGetState(struct ProfileHandlerState* state); 142 void ProfileHandlerGetState(struct ProfileHandlerState* state);
142 143
143 #ifdef __cplusplus 144 #ifdef __cplusplus
144 } /* extern "C" */ 145 } /* extern "C" */
145 #endif 146 #endif
146 147
147 #endif /* BASE_PROFILE_HANDLER_H_ */ 148 #endif /* BASE_PROFILE_HANDLER_H_ */
OLDNEW
« no previous file with comments | « third_party/tcmalloc/chromium/src/pprof ('k') | third_party/tcmalloc/chromium/src/profile-handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698