| OLD | NEW | 
|    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  Loading... | 
|  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_ */ | 
| OLD | NEW |