1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0.

/// Start profiling. Always returns false if `profiling` feature is not enabled.
#[inline]
pub fn start(_name: impl AsRef<str>) -> bool {
    // Do nothing
    false
}

/// Stop profiling. Always returns false if `profiling` feature is not enabled.
#[inline]
pub fn stop() -> bool {
    // Do nothing
    false
}