Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/toolkit/components/glean/api/src/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  pings.rs   Sprache: unbekannt

 
// 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 https://mozilla.org/MPL/2.0/.

//! This file contains the Generated Glean Metrics API (Ping portion)
//!
//! The contents of this module are generated by
//! `toolkit/components/glean/build_scripts/glean_parser_ext/run_glean_parser.py`, from
//! ping definitions files identified by `toolkit/components/glean/metrics_index.py`.

include!(mozbuild::objdir_path!(
    "toolkit/components/glean/api/src/pings.rs"
));

#[cfg(feature = "with_gecko")]
pub fn record_profiler_ping_marker(ping_name: &String) {
    use crate::private::profiler_utils::PingMarker;
    use crate::private::profiler_utils::TelemetryProfilerCategory;
    if gecko_profiler::can_accept_markers() {
        gecko_profiler::add_marker(
            "Ping::submit",
            TelemetryProfilerCategory,
            Default::default(),
            PingMarker::new_for_submit(ping_name.clone(), None),
        );
    }
}

[ Dauer der Verarbeitung: 0.23 Sekunden  (vorverarbeitet)  ]