void ProfilerMarkerImagePayload::StreamPayload(SpliceableJSONWriter& aWriter, UniqueStacks& aUniqueStacks) { streamCommonProps("innerHTML", aWriter, aUniqueStacks); // TODO: Finish me //aWriter.NameValue("innerHTML", "<img src=''/>"); }
void ProfilerMarkerImagePayload::streamPayloadImp(JSStreamWriter& b) { b.BeginObject(); streamCommonProps("innerHTML", b); // TODO: Finish me //b.NameValue("innerHTML", "<img src=''/>"); b.EndObject(); }
void IOMarkerPayload::StreamPayload(SpliceableJSONWriter& aWriter, UniqueStacks& aUniqueStacks) { streamCommonProps("io", aWriter, aUniqueStacks); aWriter.StringProperty("source", mSource); if (mFilename != nullptr) { aWriter.StringProperty("filename", mFilename); } }
void IOMarkerPayload::streamPayloadImp(JSStreamWriter& b) { b.BeginObject(); streamCommonProps("io", b); b.NameValue("source", mSource); if (mFilename != nullptr) { b.NameValue("filename", mFilename); } b.EndObject(); }
void GPUMarkerPayload::StreamPayload(SpliceableJSONWriter& aWriter, UniqueStacks& aUniqueStacks) { streamCommonProps("gpu_timer_query", aWriter, aUniqueStacks); aWriter.DoubleProperty("cpustart", profiler_time(mCpuTimeStart)); aWriter.DoubleProperty("cpuend", profiler_time(mCpuTimeEnd)); aWriter.IntProperty("gpustart", (int)mGpuTimeStart); aWriter.IntProperty("gpuend", (int)mGpuTimeEnd); }
void GPUMarkerPayload::streamPayloadImp(JSStreamWriter& b) { b.BeginObject(); streamCommonProps("gpu_timer_query", b); b.NameValue("cpustart", profiler_time(mCpuTimeStart)); b.NameValue("cpuend", profiler_time(mCpuTimeEnd)); b.NameValue("gpustart", (int)mGpuTimeStart); b.NameValue("gpuend", (int)mGpuTimeEnd); b.EndObject(); }
void ProfilerMarkerTracing::StreamPayload(SpliceableJSONWriter& aWriter, UniqueStacks& aUniqueStacks) { streamCommonProps("tracing", aWriter, aUniqueStacks); if (GetCategory()) { aWriter.StringProperty("category", GetCategory()); } if (GetMetaData() != TRACING_DEFAULT) { if (GetMetaData() == TRACING_INTERVAL_START) { aWriter.StringProperty("interval", "start"); } else if (GetMetaData() == TRACING_INTERVAL_END) { aWriter.StringProperty("interval", "end"); } } }
void ProfilerMarkerTracing::streamPayloadImp(JSStreamWriter& b) { b.BeginObject(); streamCommonProps("tracing", b); if (GetCategory()) { b.NameValue("category", GetCategory()); } if (GetMetaData() != TRACING_DEFAULT) { if (GetMetaData() == TRACING_INTERVAL_START) { b.NameValue("interval", "start"); } else if (GetMetaData() == TRACING_INTERVAL_END) { b.NameValue("interval", "end"); } } b.EndObject(); }