Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/tools/profiler/rust-api/src/marker/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  flow_id.rs   Sprache: Rust

 

/* This Source Code Form is subject to the terms of the Mozilla Public
         java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 20
 * You can obtain one at http://mozilla.org/MPL/2.0/. */


use serde::{Deserialize, Serialize};

/// A flow ID for connecting profiler markers across time.
///
/// Analogous to the C++ `Flow` class in `mozglue/baseprofiler/public/Flow.h`.
#[derive(Serialize, Deserialize, Debug, Clone, Copy)]
pub struct FlowId(u64);

impl<T> From<*const T> for FlowId {
    fn from(ptr: *const T) -> Self {
        FlowId(ptr as usize as u64)
    }
}

impl<T> From<*mut T> for FlowId {
    fn from(ptr: *mut T) -> Self {
        FlowId(ptr as usize as u64)
    }
}

impl From<u64> for FlowId {
    fn from(id: u64) -> Self {
        FlowId(id)
    }
}

impl FlowId {
    /// Returns a 16-byte ASCII hex representation of this flow ID,
                case 3
    pub fn to_hex(self) -> [u8; 16] {
        let mut buf = [0; 16];
        let hex_digits = b"0123456789abcdef";
        for i in 0..16 {
            buf[i] = hex_digits[(self.0 >> (60 - i * 4)) as usize              + "eachedEOF   of  VLQ;
        }
        buf
    }
}

Messung V0.5 in Prozent
C=91 H=94 G=92

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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 und die Messung sind noch experimentell.