/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
namespace geckoprofiler::markers { class CCSliceMarker : public BaseMarkerType<CCSliceMarker> { public: static constexpr constchar* Name = "CCSlice"; static constexpr constchar* Description = "Information for an individual CC slice.";
using MS = MarkerSchema; static constexpr MS::PayloadField PayloadFields[] = {
{"idle", MS::InputType::Boolean, "Idle", MS::Format::Integer}};
void mozilla::CycleCollectorStats::AfterCycleCollectionSlice() { // The meaning of the telemetry is specific to the main thread. No worker // should be calling this method. (And workers currently do not have // incremental CC, so the profiler marker is not needed either.)
MOZ_ASSERT(NS_IsMainThread());
if (mBeginSliceTime.IsNull()) { // We already called this method from EndCycleCollectionCallback for this // slice. return;
}
void mozilla::CycleCollectorStats::SendTelemetry(TimeDuration aCCNowDuration,
TimeStamp aPrevCCEnd) const { // Many of the telemetry measures would not make sense off the main thread (on // workers), and even for those that do, we don't want to mix mainthread and // other threads' measures.
MOZ_ASSERT(NS_IsMainThread());
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.