/// Creates a new `TaskInfo` from the given cpu stats provider.
// Due to https://github.com/rust-lang/rust/issues/50133 we cannot just derive TryFrom on a
// generic type given a collision with the blanket implementation.
Creates a new `TaskInfo` from the given cpu stats provider.
Creates a new ` TaskInfo ` from the given cpu stats provider .
pub fn try_from(
        task: T,
        histogram: Option<UintLinearHistogramProperty>,
    ) -> Result<Self, zx::Status> {
        Self::try_from_internal(
            task,
            histogram,
            MonotonicTime::new(),
            CPU_SAMPLE_PERIOD,
            num_cpus(),
        )
    }
pub fn try_from ( task : T , histogram : Option < UintLinearHistogramProperty > , ) -> Result < Self , zx :: Status > { Self :: try_from_internal ( task , histogram , MonotonicTime :: new ( ) , CPU_SAMPLE_PERIOD , num_cpus ( ) , ) }
Creates a new `TaskInfo` from the given cpu stats provider.
Creates a new ` TaskInfo ` from the given cpu stats provider .
task
T
histogram
Option<UintLinearHistogramProperty>