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

Side by Side Diff: src/platform-openbsd.cc

Issue 10857035: Moving cpu profiling into its own thread. (Closed) Base URL: http://git.chromium.org/external/v8.git@master
Patch Set: added { } Created 8 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
« no previous file with comments | « src/platform-macos.cc ('k') | src/platform-solaris.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 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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 data_ = new PlatformData; 960 data_ = new PlatformData;
961 } 961 }
962 962
963 963
964 Sampler::~Sampler() { 964 Sampler::~Sampler() {
965 ASSERT(!IsActive()); 965 ASSERT(!IsActive());
966 delete data_; 966 delete data_;
967 } 967 }
968 968
969 969
970 void Sampler::DoSample() {
971 // TODO(rogulenko): implement
972 }
973
974
970 void Sampler::Start() { 975 void Sampler::Start() {
971 ASSERT(!IsActive()); 976 ASSERT(!IsActive());
972 SetActive(true); 977 SetActive(true);
973 SignalSender::AddActiveSampler(this); 978 SignalSender::AddActiveSampler(this);
974 } 979 }
975 980
976 981
977 void Sampler::Stop() { 982 void Sampler::Stop() {
978 ASSERT(IsActive()); 983 ASSERT(IsActive());
979 SignalSender::RemoveActiveSampler(this); 984 SignalSender::RemoveActiveSampler(this);
980 SetActive(false); 985 SetActive(false);
981 } 986 }
982 987
983 988
984 } } // namespace v8::internal 989 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-macos.cc ('k') | src/platform-solaris.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698