2019-10-14 23:18:34 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 The Android Open Source Project
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2019-10-31 22:55:23 +00:00
|
|
|
#include "include/stats_event.h"
|
2019-10-14 23:18:34 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2019-10-22 17:56:58 +00:00
|
|
|
#include <time.h>
|
2019-11-06 23:15:23 +00:00
|
|
|
#include "stats_buffer_writer.h"
|
2019-10-14 23:18:34 +00:00
|
|
|
|
|
|
|
#define LOGGER_ENTRY_MAX_PAYLOAD 4068
|
|
|
|
// Max payload size is 4 bytes less as 4 bytes are reserved for stats_eventTag.
|
|
|
|
// See android_util_Stats_Log.cpp
|
|
|
|
#define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - 4)
|
|
|
|
|
|
|
|
/* POSITIONS */
|
|
|
|
#define POS_NUM_ELEMENTS 1
|
2019-11-07 22:10:32 +00:00
|
|
|
#define POS_TIMESTAMP (POS_NUM_ELEMENTS + sizeof(uint8_t))
|
|
|
|
#define POS_ATOM_ID (POS_TIMESTAMP + sizeof(uint8_t) + sizeof(uint64_t))
|
|
|
|
#define POS_FIRST_FIELD (POS_ATOM_ID + sizeof(uint8_t) + sizeof(uint32_t))
|
2019-10-14 23:18:34 +00:00
|
|
|
|
|
|
|
/* LIMITS */
|
|
|
|
#define MAX_ANNOTATION_COUNT 15
|
2019-11-05 00:13:09 +00:00
|
|
|
#define MAX_BYTE_VALUE 127 // parsing side requires that lengths fit in 7 bits
|
2019-10-14 23:18:34 +00:00
|
|
|
|
|
|
|
// The stats_event struct holds the serialized encoding of an event
|
|
|
|
// within a buf. Also includes other required fields.
|
|
|
|
struct stats_event {
|
2019-12-13 01:16:59 +00:00
|
|
|
uint8_t* buf;
|
2019-10-14 23:18:34 +00:00
|
|
|
size_t lastFieldPos; // location of last field within the buf
|
|
|
|
size_t size; // number of valid bytes within buffer
|
|
|
|
uint32_t numElements;
|
|
|
|
uint32_t atomId;
|
|
|
|
uint32_t errors;
|
2019-12-13 01:16:59 +00:00
|
|
|
bool truncate;
|
2019-11-07 22:10:32 +00:00
|
|
|
bool built;
|
2019-10-14 23:18:34 +00:00
|
|
|
};
|
|
|
|
|
2019-10-22 17:56:58 +00:00
|
|
|
static int64_t get_elapsed_realtime_ns() {
|
|
|
|
struct timespec t;
|
|
|
|
t.tv_sec = t.tv_nsec = 0;
|
|
|
|
clock_gettime(CLOCK_BOOTTIME, &t);
|
|
|
|
return (int64_t)t.tv_sec * 1000000000LL + t.tv_nsec;
|
|
|
|
}
|
|
|
|
|
2019-10-14 23:18:34 +00:00
|
|
|
struct stats_event* stats_event_obtain() {
|
|
|
|
struct stats_event* event = malloc(sizeof(struct stats_event));
|
2019-12-13 01:16:59 +00:00
|
|
|
event->buf = (uint8_t*)calloc(MAX_EVENT_PAYLOAD, 1);
|
2019-10-14 23:18:34 +00:00
|
|
|
event->buf[0] = OBJECT_TYPE;
|
|
|
|
event->atomId = 0;
|
|
|
|
event->errors = 0;
|
2019-12-13 01:16:59 +00:00
|
|
|
event->truncate = true; // truncate for both pulled and pushed atoms
|
2019-11-07 22:10:32 +00:00
|
|
|
event->built = false;
|
|
|
|
|
|
|
|
// place the timestamp
|
|
|
|
uint64_t timestampNs = get_elapsed_realtime_ns();
|
|
|
|
event->buf[POS_TIMESTAMP] = INT64_TYPE;
|
|
|
|
memcpy(&event->buf[POS_TIMESTAMP + sizeof(uint8_t)], ×tampNs, sizeof(timestampNs));
|
|
|
|
|
|
|
|
event->numElements = 1;
|
|
|
|
event->lastFieldPos = 0; // 0 since we haven't written a field yet
|
|
|
|
event->size = POS_FIRST_FIELD;
|
|
|
|
|
2019-10-14 23:18:34 +00:00
|
|
|
return event;
|
|
|
|
}
|
|
|
|
|
|
|
|
void stats_event_release(struct stats_event* event) {
|
2019-12-13 01:16:59 +00:00
|
|
|
free(event->buf);
|
2019-11-07 22:10:32 +00:00
|
|
|
free(event);
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void stats_event_set_atom_id(struct stats_event* event, uint32_t atomId) {
|
2019-11-07 22:10:32 +00:00
|
|
|
event->atomId = atomId;
|
|
|
|
event->buf[POS_ATOM_ID] = INT32_TYPE;
|
|
|
|
memcpy(&event->buf[POS_ATOM_ID + sizeof(uint8_t)], &atomId, sizeof(atomId));
|
|
|
|
event->numElements++;
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Side-effect: modifies event->errors if the buffer would overflow
|
|
|
|
static bool overflows(struct stats_event* event, size_t size) {
|
2019-11-07 22:10:32 +00:00
|
|
|
if (event->size + size > MAX_EVENT_PAYLOAD) {
|
2019-10-14 23:18:34 +00:00
|
|
|
event->errors |= ERROR_OVERFLOW;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
// Side-effect: all append functions increment event->size if there is
|
|
|
|
// sufficient space within the buffer to place the value
|
|
|
|
static void append_byte(struct stats_event* event, uint8_t value) {
|
2019-10-14 23:18:34 +00:00
|
|
|
if (!overflows(event, sizeof(value))) {
|
2019-11-07 22:10:32 +00:00
|
|
|
event->buf[event->size] = value;
|
|
|
|
event->size += sizeof(value);
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
static void append_bool(struct stats_event* event, bool value) {
|
|
|
|
append_byte(event, (uint8_t)value);
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
static void append_int32(struct stats_event* event, int32_t value) {
|
2019-10-14 23:18:34 +00:00
|
|
|
if (!overflows(event, sizeof(value))) {
|
2019-11-07 22:10:32 +00:00
|
|
|
memcpy(&event->buf[event->size], &value, sizeof(value));
|
|
|
|
event->size += sizeof(value);
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
static void append_int64(struct stats_event* event, int64_t value) {
|
2019-10-14 23:18:34 +00:00
|
|
|
if (!overflows(event, sizeof(value))) {
|
2019-11-07 22:10:32 +00:00
|
|
|
memcpy(&event->buf[event->size], &value, sizeof(value));
|
|
|
|
event->size += sizeof(value);
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
static void append_float(struct stats_event* event, float value) {
|
2019-10-14 23:18:34 +00:00
|
|
|
if (!overflows(event, sizeof(value))) {
|
2019-11-07 22:10:32 +00:00
|
|
|
memcpy(&event->buf[event->size], &value, sizeof(value));
|
|
|
|
event->size += sizeof(float);
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-04 16:17:25 +00:00
|
|
|
static void append_byte_array(struct stats_event* event, const uint8_t* buf, size_t size) {
|
2019-10-14 23:18:34 +00:00
|
|
|
if (!overflows(event, size)) {
|
2019-11-07 22:10:32 +00:00
|
|
|
memcpy(&event->buf[event->size], buf, size);
|
|
|
|
event->size += size;
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
// Side-effect: modifies event->errors if buf is not properly null-terminated
|
|
|
|
static void append_string(struct stats_event* event, const char* buf) {
|
|
|
|
size_t size = strnlen(buf, MAX_EVENT_PAYLOAD);
|
2019-12-18 21:43:05 +00:00
|
|
|
if (size == MAX_EVENT_PAYLOAD) {
|
2019-11-07 22:10:32 +00:00
|
|
|
event->errors |= ERROR_STRING_NOT_NULL_TERMINATED;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
append_int32(event, size);
|
|
|
|
append_byte_array(event, (uint8_t*)buf, size);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void start_field(struct stats_event* event, uint8_t typeId) {
|
|
|
|
event->lastFieldPos = event->size;
|
|
|
|
append_byte(event, typeId);
|
2019-11-05 00:13:09 +00:00
|
|
|
event->numElements++;
|
|
|
|
}
|
|
|
|
|
2019-10-14 23:18:34 +00:00
|
|
|
void stats_event_write_int32(struct stats_event* event, int32_t value) {
|
2019-11-07 22:10:32 +00:00
|
|
|
if (event->errors) return;
|
2019-10-14 23:18:34 +00:00
|
|
|
|
2019-11-05 00:13:09 +00:00
|
|
|
start_field(event, INT32_TYPE);
|
2019-11-07 22:10:32 +00:00
|
|
|
append_int32(event, value);
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void stats_event_write_int64(struct stats_event* event, int64_t value) {
|
2019-11-07 22:10:32 +00:00
|
|
|
if (event->errors) return;
|
2019-10-14 23:18:34 +00:00
|
|
|
|
2019-11-05 00:13:09 +00:00
|
|
|
start_field(event, INT64_TYPE);
|
2019-11-07 22:10:32 +00:00
|
|
|
append_int64(event, value);
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void stats_event_write_float(struct stats_event* event, float value) {
|
2019-11-07 22:10:32 +00:00
|
|
|
if (event->errors) return;
|
2019-10-14 23:18:34 +00:00
|
|
|
|
2019-11-05 00:13:09 +00:00
|
|
|
start_field(event, FLOAT_TYPE);
|
2019-11-07 22:10:32 +00:00
|
|
|
append_float(event, value);
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void stats_event_write_bool(struct stats_event* event, bool value) {
|
2019-11-07 22:10:32 +00:00
|
|
|
if (event->errors) return;
|
2019-10-14 23:18:34 +00:00
|
|
|
|
2019-11-05 00:13:09 +00:00
|
|
|
start_field(event, BOOL_TYPE);
|
2019-11-07 22:10:32 +00:00
|
|
|
append_bool(event, value);
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
|
2019-12-04 16:17:25 +00:00
|
|
|
void stats_event_write_byte_array(struct stats_event* event, const uint8_t* buf, size_t numBytes) {
|
2019-11-07 22:10:32 +00:00
|
|
|
if (event->errors) return;
|
2019-10-14 23:18:34 +00:00
|
|
|
|
2019-11-05 00:13:09 +00:00
|
|
|
start_field(event, BYTE_ARRAY_TYPE);
|
2019-11-07 22:10:32 +00:00
|
|
|
append_int32(event, numBytes);
|
|
|
|
append_byte_array(event, buf, numBytes);
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
|
2019-12-11 02:46:23 +00:00
|
|
|
// Value is assumed to be encoded using UTF8
|
|
|
|
void stats_event_write_string8(struct stats_event* event, const char* value) {
|
2019-11-07 22:10:32 +00:00
|
|
|
if (event->errors) return;
|
2019-10-14 23:18:34 +00:00
|
|
|
|
2019-11-05 00:13:09 +00:00
|
|
|
start_field(event, STRING_TYPE);
|
2019-12-11 02:46:23 +00:00
|
|
|
append_string(event, value);
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Tags are assumed to be encoded using UTF8
|
2019-12-04 16:17:25 +00:00
|
|
|
void stats_event_write_attribution_chain(struct stats_event* event, const uint32_t* uids,
|
|
|
|
const char* const* tags, uint8_t numNodes) {
|
2019-11-07 22:10:32 +00:00
|
|
|
if (numNodes > MAX_BYTE_VALUE) event->errors |= ERROR_ATTRIBUTION_CHAIN_TOO_LONG;
|
|
|
|
if (event->errors) return;
|
2019-10-14 23:18:34 +00:00
|
|
|
|
2019-11-05 00:13:09 +00:00
|
|
|
start_field(event, ATTRIBUTION_CHAIN_TYPE);
|
2019-11-07 22:10:32 +00:00
|
|
|
append_byte(event, numNodes);
|
2019-10-14 23:18:34 +00:00
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
for (uint8_t i = 0; i < numNodes; i++) {
|
|
|
|
append_int32(event, uids[i]);
|
|
|
|
append_string(event, tags[i]);
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
2019-11-05 00:13:09 +00:00
|
|
|
}
|
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
void stats_event_write_key_value_pairs(struct stats_event* event, struct key_value_pair* pairs,
|
|
|
|
uint8_t numPairs) {
|
|
|
|
if (numPairs > MAX_BYTE_VALUE) event->errors |= ERROR_TOO_MANY_KEY_VALUE_PAIRS;
|
|
|
|
if (event->errors) return;
|
2019-11-05 00:13:09 +00:00
|
|
|
|
|
|
|
start_field(event, KEY_VALUE_PAIRS_TYPE);
|
2019-11-07 22:10:32 +00:00
|
|
|
append_byte(event, numPairs);
|
2019-11-05 00:13:09 +00:00
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
for (uint8_t i = 0; i < numPairs; i++) {
|
|
|
|
append_int32(event, pairs[i].key);
|
|
|
|
append_byte(event, pairs[i].valueType);
|
2019-11-05 00:13:09 +00:00
|
|
|
switch (pairs[i].valueType) {
|
|
|
|
case INT32_TYPE:
|
2019-11-07 22:10:32 +00:00
|
|
|
append_int32(event, pairs[i].int32Value);
|
2019-11-05 00:13:09 +00:00
|
|
|
break;
|
|
|
|
case INT64_TYPE:
|
2019-11-07 22:10:32 +00:00
|
|
|
append_int64(event, pairs[i].int64Value);
|
2019-11-05 00:13:09 +00:00
|
|
|
break;
|
|
|
|
case FLOAT_TYPE:
|
2019-11-07 22:10:32 +00:00
|
|
|
append_float(event, pairs[i].floatValue);
|
2019-11-05 00:13:09 +00:00
|
|
|
break;
|
|
|
|
case STRING_TYPE:
|
2019-11-07 22:10:32 +00:00
|
|
|
append_string(event, pairs[i].stringValue);
|
2019-11-05 00:13:09 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
event->errors |= ERROR_INVALID_VALUE_TYPE;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Side-effect: modifies event->errors if field has too many annotations
|
|
|
|
static void increment_annotation_count(struct stats_event* event) {
|
2019-11-07 22:10:32 +00:00
|
|
|
uint8_t fieldType = event->buf[event->lastFieldPos] & 0x0F;
|
|
|
|
uint32_t oldAnnotationCount = (event->buf[event->lastFieldPos] & 0xF0) >> 4;
|
2019-11-05 00:13:09 +00:00
|
|
|
uint32_t newAnnotationCount = oldAnnotationCount + 1;
|
2019-10-14 23:18:34 +00:00
|
|
|
|
|
|
|
if (newAnnotationCount > MAX_ANNOTATION_COUNT) {
|
|
|
|
event->errors |= ERROR_TOO_MANY_ANNOTATIONS;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
event->buf[event->lastFieldPos] = (((uint8_t)newAnnotationCount << 4) & 0xF0) | fieldType;
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
void stats_event_add_bool_annotation(struct stats_event* event, uint8_t annotationId, bool value) {
|
|
|
|
if (event->lastFieldPos == 0) event->errors |= ERROR_ANNOTATION_DOES_NOT_FOLLOW_FIELD;
|
|
|
|
if (annotationId > MAX_BYTE_VALUE) event->errors |= ERROR_ANNOTATION_ID_TOO_LARGE;
|
|
|
|
if (event->errors) return;
|
2019-10-14 23:18:34 +00:00
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
append_byte(event, annotationId);
|
|
|
|
append_byte(event, BOOL_TYPE);
|
|
|
|
append_bool(event, value);
|
2019-10-14 23:18:34 +00:00
|
|
|
increment_annotation_count(event);
|
|
|
|
}
|
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
void stats_event_add_int32_annotation(struct stats_event* event, uint8_t annotationId,
|
2019-10-14 23:18:34 +00:00
|
|
|
int32_t value) {
|
2019-11-07 22:10:32 +00:00
|
|
|
if (event->lastFieldPos == 0) event->errors |= ERROR_ANNOTATION_DOES_NOT_FOLLOW_FIELD;
|
|
|
|
if (annotationId > MAX_BYTE_VALUE) event->errors |= ERROR_ANNOTATION_ID_TOO_LARGE;
|
|
|
|
if (event->errors) return;
|
2019-10-14 23:18:34 +00:00
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
append_byte(event, annotationId);
|
|
|
|
append_byte(event, INT32_TYPE);
|
|
|
|
append_int32(event, value);
|
2019-10-14 23:18:34 +00:00
|
|
|
increment_annotation_count(event);
|
|
|
|
}
|
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
uint32_t stats_event_get_atom_id(struct stats_event* event) {
|
|
|
|
return event->atomId;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint8_t* stats_event_get_buffer(struct stats_event* event, size_t* size) {
|
|
|
|
if (size) *size = event->size;
|
|
|
|
return event->buf;
|
|
|
|
}
|
|
|
|
|
2019-10-14 23:18:34 +00:00
|
|
|
uint32_t stats_event_get_errors(struct stats_event* event) {
|
|
|
|
return event->errors;
|
|
|
|
}
|
|
|
|
|
2019-12-13 01:16:59 +00:00
|
|
|
void stats_event_truncate_buffer(struct stats_event* event, bool truncate) {
|
|
|
|
event->truncate = truncate;
|
|
|
|
}
|
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
void stats_event_build(struct stats_event* event) {
|
|
|
|
if (event->built) return;
|
2019-10-14 23:18:34 +00:00
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
if (event->atomId == 0) event->errors |= ERROR_NO_ATOM_ID;
|
2019-11-05 00:13:09 +00:00
|
|
|
|
|
|
|
if (event->numElements > MAX_BYTE_VALUE) {
|
|
|
|
event->errors |= ERROR_TOO_MANY_FIELDS;
|
|
|
|
} else {
|
2019-11-07 22:10:32 +00:00
|
|
|
event->buf[POS_NUM_ELEMENTS] = event->numElements;
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
// If there are errors, rewrite buffer.
|
2019-10-14 23:18:34 +00:00
|
|
|
if (event->errors) {
|
2019-11-07 22:10:32 +00:00
|
|
|
event->buf[POS_NUM_ELEMENTS] = 3;
|
|
|
|
event->buf[POS_FIRST_FIELD] = ERROR_TYPE;
|
|
|
|
memcpy(&event->buf[POS_FIRST_FIELD + sizeof(uint8_t)], &event->errors,
|
|
|
|
sizeof(event->errors));
|
|
|
|
event->size = POS_FIRST_FIELD + sizeof(uint8_t) + sizeof(uint32_t);
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
2019-11-07 22:10:32 +00:00
|
|
|
|
2019-12-13 01:16:59 +00:00
|
|
|
// Truncate the buffer to the appropriate length in order to limit our
|
|
|
|
// memory usage.
|
|
|
|
if (event->truncate) event->buf = (uint8_t*)realloc(event->buf, event->size);
|
|
|
|
|
2019-11-07 22:10:32 +00:00
|
|
|
event->built = true;
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
|
|
|
|
2019-12-11 02:46:23 +00:00
|
|
|
int stats_event_write(struct stats_event* event) {
|
2019-11-07 22:10:32 +00:00
|
|
|
stats_event_build(event);
|
2019-12-11 02:46:23 +00:00
|
|
|
return write_buffer_to_statsd(&event->buf, event->size, event->atomId);
|
2019-10-14 23:18:34 +00:00
|
|
|
}
|
2019-12-11 02:46:23 +00:00
|
|
|
|
|
|
|
struct stats_event_api_table table = {
|
|
|
|
stats_event_obtain,
|
|
|
|
stats_event_build,
|
|
|
|
stats_event_write,
|
|
|
|
stats_event_release,
|
|
|
|
stats_event_set_atom_id,
|
|
|
|
stats_event_write_int32,
|
|
|
|
stats_event_write_int64,
|
|
|
|
stats_event_write_float,
|
|
|
|
stats_event_write_bool,
|
|
|
|
stats_event_write_byte_array,
|
|
|
|
stats_event_write_string8,
|
|
|
|
stats_event_write_attribution_chain,
|
|
|
|
stats_event_write_key_value_pairs,
|
|
|
|
stats_event_add_bool_annotation,
|
|
|
|
stats_event_add_int32_annotation,
|
|
|
|
stats_event_get_atom_id,
|
|
|
|
stats_event_get_buffer,
|
|
|
|
stats_event_get_errors,
|
|
|
|
};
|