Lines Matching refs:value
17 #include "src/tracing/traced-value.h"
589 // backward compatibility with the tracing protocol but the value of "ts"
591 auto value = TracedValue::Create();
592 value->SetDouble("startTime", start_time_.since_origin().InMicroseconds());
594 "Profile", id_, "data", std::move(value));
664 void BuildNodeValue(const ProfileNode* node, TracedValue* value) {
666 value->BeginDictionary("callFrame");
667 value->SetString("functionName", entry->name());
669 value->SetString("url", entry->resource_name());
671 value->SetInteger("scriptId", entry->script_id());
673 value->SetInteger("lineNumber", entry->line_number() - 1);
676 value->SetInteger("columnNumber", entry->column_number() - 1);
678 value->SetString("codeType", entry->code_type_string());
679 value->EndDictionary();
680 value->SetInteger("id", node->id());
682 value->SetInteger("parent", node->parent()->id());
686 value->SetString("deoptReason", deopt_reason);
695 auto value = TracedValue::Create();
698 value->BeginDictionary("cpuProfile");
700 value->BeginArray("nodes");
702 value->BeginDictionary();
703 BuildNodeValue(node, value.get());
704 value->EndDictionary();
706 value->EndArray();
709 value->BeginArray("samples");
711 value->AppendInteger(samples_[i].node->id());
713 value->EndArray();
715 value->EndDictionary();
728 value->BeginArray("timeDeltas");
733 value->AppendInteger(static_cast<int>(
737 value->EndArray();
742 value->BeginArray("lines");
744 value->AppendInteger(samples_[i].line);
746 value->EndArray();
752 "ProfileChunk", id_, "data", std::move(value));
760 auto value = TracedValue::Create();
765 // devtools to identify the last ProfileChunk but the value of "ts" should be
767 value->SetDouble("endTime", end_time_.since_origin().InMicroseconds());
769 "ProfileChunk", id_, "data", std::move(value));