| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 // Limits the number of profiles that can be simultaneously collected. | 305 // Limits the number of profiles that can be simultaneously collected. |
| 306 static const int kMaxSimultaneousProfiles = 100; | 306 static const int kMaxSimultaneousProfiles = 100; |
| 307 | 307 |
| 308 private: | 308 private: |
| 309 StringsStorage function_and_resource_names_; | 309 StringsStorage function_and_resource_names_; |
| 310 List<CodeEntry*> code_entries_; | 310 List<CodeEntry*> code_entries_; |
| 311 List<CpuProfile*> finished_profiles_; | 311 List<CpuProfile*> finished_profiles_; |
| 312 | 312 |
| 313 // Accessed by VM thread and profile generator thread. | 313 // Accessed by VM thread and profile generator thread. |
| 314 List<CpuProfile*> current_profiles_; | 314 List<CpuProfile*> current_profiles_; |
| 315 Semaphore* current_profiles_semaphore_; | 315 Semaphore current_profiles_semaphore_; |
| 316 | 316 |
| 317 DISALLOW_COPY_AND_ASSIGN(CpuProfilesCollection); | 317 DISALLOW_COPY_AND_ASSIGN(CpuProfilesCollection); |
| 318 }; | 318 }; |
| 319 | 319 |
| 320 | 320 |
| 321 class ProfileGenerator { | 321 class ProfileGenerator { |
| 322 public: | 322 public: |
| 323 explicit ProfileGenerator(CpuProfilesCollection* profiles); | 323 explicit ProfileGenerator(CpuProfilesCollection* profiles); |
| 324 | 324 |
| 325 void RecordTickSample(const TickSample& sample); | 325 void RecordTickSample(const TickSample& sample); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 344 CodeEntry* gc_entry_; | 344 CodeEntry* gc_entry_; |
| 345 CodeEntry* unresolved_entry_; | 345 CodeEntry* unresolved_entry_; |
| 346 | 346 |
| 347 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); | 347 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); |
| 348 }; | 348 }; |
| 349 | 349 |
| 350 | 350 |
| 351 } } // namespace v8::internal | 351 } } // namespace v8::internal |
| 352 | 352 |
| 353 #endif // V8_PROFILE_GENERATOR_H_ | 353 #endif // V8_PROFILE_GENERATOR_H_ |
| OLD | NEW |