OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 3187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3198 | 3198 |
3199 /** | 3199 /** |
3200 * Enables the host application to provide a mechanism for recording | 3200 * Enables the host application to provide a mechanism for recording |
3201 * histograms. The CreateHistogram function returns a | 3201 * histograms. The CreateHistogram function returns a |
3202 * histogram which will later be passed to the AddHistogramSample | 3202 * histogram which will later be passed to the AddHistogramSample |
3203 * function. | 3203 * function. |
3204 */ | 3204 */ |
3205 static void SetCreateHistogramFunction(CreateHistogramCallback); | 3205 static void SetCreateHistogramFunction(CreateHistogramCallback); |
3206 static void SetAddHistogramSampleFunction(AddHistogramSampleCallback); | 3206 static void SetAddHistogramSampleFunction(AddHistogramSampleCallback); |
3207 | 3207 |
3208 /** | |
3209 * Enables the computation of a sliding window of states. The sliding | |
3210 * window information is recorded in statistics counters. | |
3211 */ | |
3212 static void EnableSlidingStateWindow(); | |
3213 | |
3214 /** Callback function for reporting failed access checks.*/ | 3208 /** Callback function for reporting failed access checks.*/ |
3215 static void SetFailedAccessCheckCallbackFunction(FailedAccessCheckCallback); | 3209 static void SetFailedAccessCheckCallbackFunction(FailedAccessCheckCallback); |
3216 | 3210 |
3217 /** | 3211 /** |
3218 * Enables the host application to receive a notification before a | 3212 * Enables the host application to receive a notification before a |
3219 * garbage collection. Allocations are not allowed in the | 3213 * garbage collection. Allocations are not allowed in the |
3220 * callback function, you therefore cannot manipulate objects (set | 3214 * callback function, you therefore cannot manipulate objects (set |
3221 * or delete properties for example) since it is possible such | 3215 * or delete properties for example) since it is possible such |
3222 * operations will result in the allocation of objects. It is possible | 3216 * operations will result in the allocation of objects. It is possible |
3223 * to specify the GCType filter for your callback. But it is not possible to | 3217 * to specify the GCType filter for your callback. But it is not possible to |
(...skipping 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4869 | 4863 |
4870 | 4864 |
4871 } // namespace v8 | 4865 } // namespace v8 |
4872 | 4866 |
4873 | 4867 |
4874 #undef V8EXPORT | 4868 #undef V8EXPORT |
4875 #undef TYPE_CHECK | 4869 #undef TYPE_CHECK |
4876 | 4870 |
4877 | 4871 |
4878 #endif // V8_H_ | 4872 #endif // V8_H_ |
OLD | NEW |