| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 /** | 126 /** |
| 127 * Returns time when the profile recording was stopped (in microseconds | 127 * Returns time when the profile recording was stopped (in microseconds |
| 128 * since the Epoch). | 128 * since the Epoch). |
| 129 */ | 129 */ |
| 130 int64_t GetEndTime() const; | 130 int64_t GetEndTime() const; |
| 131 | 131 |
| 132 /** | 132 /** |
| 133 * Deletes the profile and removes it from CpuProfiler's list. | 133 * Deletes the profile and removes it from CpuProfiler's list. |
| 134 * All pointers to nodes previously returned become invalid. | 134 * All pointers to nodes previously returned become invalid. |
| 135 * Profiles with the same uid but obtained using different | |
| 136 * security token are not deleted, but become inaccessible | |
| 137 * using FindProfile method. It is embedder's responsibility | |
| 138 * to call Delete on these profiles. | |
| 139 */ | 135 */ |
| 140 void Delete(); | 136 void Delete(); |
| 141 }; | 137 }; |
| 142 | 138 |
| 143 | 139 |
| 144 /** | 140 /** |
| 145 * Interface for controlling CPU profiling. Instance of the | 141 * Interface for controlling CPU profiling. Instance of the |
| 146 * profiler can be retrieved using v8::Isolate::GetCpuProfiler. | 142 * profiler can be retrieved using v8::Isolate::GetCpuProfiler. |
| 147 */ | 143 */ |
| 148 class V8_EXPORT CpuProfiler { | 144 class V8_EXPORT CpuProfiler { |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 uint32_t index; // Index of the time interval that was changed. | 582 uint32_t index; // Index of the time interval that was changed. |
| 587 uint32_t count; // New value of count field for the interval with this index. | 583 uint32_t count; // New value of count field for the interval with this index. |
| 588 uint32_t size; // New value of size field for the interval with this index. | 584 uint32_t size; // New value of size field for the interval with this index. |
| 589 }; | 585 }; |
| 590 | 586 |
| 591 | 587 |
| 592 } // namespace v8 | 588 } // namespace v8 |
| 593 | 589 |
| 594 | 590 |
| 595 #endif // V8_V8_PROFILER_H_ | 591 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |