Home | History | Annotate | Download | only in src

Lines Matching full:sample

75 // Each sample is appended to a circular buffer.
86 void Insert(TickSample* sample) {
93 buffer_[head_] = *sample;
100 bool Remove(TickSample* sample) {
102 *sample = buffer_[tail_];
145 void StackTracer::Trace(TickSample* sample) {
146 if (sample->state == GC) {
147 sample->frames_count = 0;
154 sample->frames_count = 0;
159 sample->fp + JavaScriptFrameConstants::kFunctionOffset;
160 if (SafeStackFrameIterator::IsWithinBounds(sample->sp, js_entry_sp,
162 sample->function = Memory::Address_at(functionAddr) - kHeapObjectTag;
169 sample->stack[i++] = callback;
172 SafeStackTraceFrameIterator it(sample->fp, sample->sp,
173 sample->sp, js_entry_sp);
175 sample->stack[i++] = it.frame()->pc();
178 sample->frames_count = i;
193 void SampleStack(TickSample* sample) {
194 StackTracer::Trace(sample);
197 void Tick(TickSample* sample) {
198 if (profiler_) profiler_->Insert(sample);
199 if (window_) window_->AddState(sample->state);
302 TickSample sample;
305 Insert(&sample);
313 TickSample sample;
314 bool overflow = Logger::profiler_->Remove(&sample);
316 LOG(TickEvent(&sample, overflow));
317 overflow = Logger::profiler_->Remove(&sample);
981 msg.Append("heap-sample-begin,\"%s\",\"%s\",%.0f\n",
993 msg.Append("heap-sample-stats,\"%s\",\"%s\",%d,%d\n",
1004 msg.Append("heap-sample-end,\"%s\",\"%s\"\n", space, kind);
1014 msg.Append("heap-sample-item,%s,%d,%d\n", type, number, bytes);
1116 void Logger::TickEvent(TickSample* sample, bool overflow) {
1122 Address prev_addr = sample->pc;
1125 msg.AppendAddress(sample->sp, prev_sp);
1126 prev_sp = sample->sp;
1128 msg.AppendAddress(sample->function, prev_function);
1129 prev_function = sample->function;
1130 msg.Append(",%d", static_cast<int>(sample->state));
1134 for (int i = 0; i < sample->frames_count; ++i) {
1136 msg.AppendAddress(sample
1137 prev_addr = sample->stack[i];