Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: src/profile-generator.h

Issue 23748003: Cleanup Semaphore class. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Build fix for Mac OS X. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/platform/time.cc ('k') | src/profile-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/platform/time.cc ('k') | src/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698