Sha256: 39c4f2a3d6212c46b0cee63f6b641771b83e8aa9b77a6f9f110823f5785b49c7

Contents?: true

Size: 536 Bytes

Versions: 88

Compression:

Stored size: 536 Bytes

Contents

#ifndef FILE_PARSING_H
#define FILE_PARSING_H
#include <file_reading.h>
#include <hashmap.h>
#include <ruby.h>

typedef struct {
    char *json;
    size_t json_size;
    char *name;
    size_t name_len;

    ID multiprocess_mode;
    ID type;
    VALUE pid;

    double value;
} entry_t;

void hashmap_setup(struct hashmap *map);

int process_buffer(file_t *file_info, buffer_t *source, struct hashmap *map);
int sort_map_entries(const struct hashmap *map, entry_t ***sorted_entries);

int is_pid_significant(const entry_t *e);

#endif

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
prometheus-client-mmap-0.28.1 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.28.1-x86_64-linux ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.28.1-x86_64-darwin ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.28.1-arm64-darwin ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.28.1-aarch64-linux ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.28.0 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.28.0-x86_64-linux ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.28.0-x86_64-darwin ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.28.0-arm64-darwin ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.28.0-aarch64-linux ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.27.0 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.27.0-x86_64-linux ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.27.0-x86_64-darwin ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.27.0-arm64-darwin ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.27.0-aarch64-linux ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.26.1 ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.26.1-x86_64-linux ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.26.1-x86_64-darwin ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.26.1-arm64-darwin ext/fast_mmaped_file/file_parsing.h
prometheus-client-mmap-0.26.1-aarch64-linux ext/fast_mmaped_file/file_parsing.h