OLD | NEW |
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 Loading... |
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 |
OLD | NEW |