| Index: src/profile-generator-inl.h
|
| diff --git a/src/profile-generator-inl.h b/src/profile-generator-inl.h
|
| index 5e92be47017b178971e348fb983505ecdf3b5921..048beafaae196d1d271814a3fa439af1816b5165 100644
|
| --- a/src/profile-generator-inl.h
|
| +++ b/src/profile-generator-inl.h
|
| @@ -33,6 +33,7 @@
|
| namespace v8 {
|
| namespace internal {
|
|
|
| +#ifdef ENABLE_CPP_PROFILES_PROCESSOR
|
|
|
| CodeEntry::CodeEntry(Logger::LogEventsAndTags tag,
|
| const char* name,
|
| @@ -76,6 +77,14 @@ void CodeMap::DeleteCode(Address addr) {
|
| }
|
|
|
|
|
| +bool CpuProfilesCollection::is_last_profile() {
|
| + // Called from VM thread, and only it can mutate the list,
|
| + // so no locking is needed here.
|
| + return current_profiles_.length() == 1;
|
| +}
|
| +
|
| +#endif // ENABLE_CPP_PROFILES_PROCESSOR
|
| +
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_PROFILE_GENERATOR_INL_H_
|
|
|