Lines Matching defs:sample
39 #include "src/profiler/tick-sample.h"
877 // Each sample is appended to a circular buffer.
888 void Insert(TickSample* sample) {
892 buffer_[head_] = *sample;
902 bool Remove(TickSample* sample) {
904 *sample = buffer_[base::Relaxed_Load(&tail_)];
967 TickSample sample;
968 sample.Init(isolate, state, TickSample::kIncludeCEntryFrame, true);
969 profiler_->Insert(&sample);
1019 TickSample sample;
1020 Insert(&sample);
1027 TickSample sample;
1028 bool overflow = Remove(&sample);
1030 LOG(isolate_, TickEvent(&sample, overflow));
1031 overflow = Remove(&sample);
1724 void Logger::TickEvent(TickSample* sample, bool overflow) {
1732 << reinterpret_cast<void*>(sample->pc) << kNext << Time();
1733 if (sample->has_external_callback) {
1735 << reinterpret_cast<void*>(sample->external_callback_entry);
1737 msg << kNext << 0 << kNext << reinterpret_cast<void*>(sample->tos);
1739 msg << kNext << static_cast<int>(sample->state);
1741 for (unsigned i = 0; i < sample->frames_count; ++i) {
1742 msg << kNext << reinterpret_cast<void*>(sample->stack[i]);