Halide
halide_profiler_func_stats Struct Reference

The functions below here are relevant for pipelines compiled with the -profile target flag, which runs a sampling profiler thread alongside the pipeline. More...

#include <HalideRuntime.h>

Public Attributes

uint64_t time
 Total time taken evaluating this Func (in nanoseconds). More...
 
uint64_t memory_current
 The current memory allocation of this Func. More...
 
uint64_t memory_peak
 The peak memory allocation of this Func. More...
 
uint64_t memory_total
 The total memory allocation of this Func. More...
 
uint64_t stack_peak
 The peak stack allocation of this Func's threads. More...
 
uint64_t active_threads_numerator
 The average number of thread pool worker threads active while computing this Func. More...
 
uint64_t active_threads_denominator
 
const char * name
 The name of this Func. More...
 
int num_allocs
 The total number of memory allocation of this Func. More...
 

Detailed Description

The functions below here are relevant for pipelines compiled with the -profile target flag, which runs a sampling profiler thread alongside the pipeline.

Per-Func state tracked by the sampling profiler.

Definition at line 1674 of file HalideRuntime.h.

Member Data Documentation

◆ time

uint64_t halide_profiler_func_stats::time

Total time taken evaluating this Func (in nanoseconds).

Definition at line 1676 of file HalideRuntime.h.

◆ memory_current

uint64_t halide_profiler_func_stats::memory_current

The current memory allocation of this Func.

Definition at line 1679 of file HalideRuntime.h.

◆ memory_peak

uint64_t halide_profiler_func_stats::memory_peak

The peak memory allocation of this Func.

Definition at line 1682 of file HalideRuntime.h.

◆ memory_total

uint64_t halide_profiler_func_stats::memory_total

The total memory allocation of this Func.

Definition at line 1685 of file HalideRuntime.h.

◆ stack_peak

uint64_t halide_profiler_func_stats::stack_peak

The peak stack allocation of this Func's threads.

Definition at line 1688 of file HalideRuntime.h.

◆ active_threads_numerator

uint64_t halide_profiler_func_stats::active_threads_numerator

The average number of thread pool worker threads active while computing this Func.

Definition at line 1691 of file HalideRuntime.h.

◆ active_threads_denominator

uint64_t halide_profiler_func_stats::active_threads_denominator

Definition at line 1691 of file HalideRuntime.h.

◆ name

const char* halide_profiler_func_stats::name

The name of this Func.

A global constant string.

Definition at line 1694 of file HalideRuntime.h.

◆ num_allocs

int halide_profiler_func_stats::num_allocs

The total number of memory allocation of this Func.

Definition at line 1697 of file HalideRuntime.h.


The documentation for this struct was generated from the following file: