![]() |
Arax -8d09c51940345c86062e8ef2427c705ae66e5926
A Runtime Framework for Decoupling Applications from Heterogeneous Accelerators
|
#include "arax_plot.h"
#include "arax_pipe.h"
#include "arax_ptr.h"
#include "../alloc/alloc.h"
#include <string.h>
Go to the source code of this file.
Functions | |
uint64_t * | arax_plot_register_metric (const char *name, uint64_t *metric) |
uint64_t * arax_plot_register_metric | ( | const char * | name, |
uint64_t * | metric ) |
Register a new metric name
and set/get the location where its value resides.
The value pointer metric
can be null or a valid arax pointer. When null, the call will allocate space for the metric, and return the pointer. When given a pointer where arax_ptr_valid()==true
, the provided pointer is used and returned.
name | Short name of new metric. |
metric | NULL or pointer that has arax_ptr_valid()==true . |
Definition at line 7 of file arax_plot.c.
References arax_assert, arax_init(), arax_ptr_valid(), arch_alloc_allocate(), utils_kv_set(), and vpipe.