Sha256: 1c4e85066ce73d7ed5fced1b00bd35a666aa214b332e6e275b872d6e8e7b308f
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
#ifndef STACK_TRACY_H #define STACK_TRACY_H #include <ruby.h> #include <stdbool.h> #include <time.h> #include <sys/time.h> #include <string.h> typedef struct event_info_t { rb_event_flag_t event; const char *file; int line; bool singleton; const VALUE *object; const ID *method; double nsec; } EventInfo; typedef struct ruby_class_t { const char *name; const VALUE *klass; } RubyClass; static VALUE mStackTracy; static VALUE cEventInfo; static EventInfo *stack; static RubyClass *only; static RubyClass *exclude; static int stack_size, only_size, exclude_size; static bool trace; static double nsec(); static const char *event_name(rb_event_flag_t event); #if defined(RB_EVENT_HOOKS_HAVE_CALLBACK_DATA) || defined(RUBY_EVENT_VM) static void stack_tracy_trap(rb_event_flag_t event, VALUE data, VALUE self, ID id, VALUE klass); #else static void stack_tracy_trap(rb_event_flag_t event, NODE *node, VALUE self, ID id, VALUE klass); #endif VALUE stack_tracy_start(VALUE self, VALUE only_names, VALUE exclude_names); VALUE stack_tracy_stop(VALUE self); void Init_stack_tracy(); #endif
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stack_tracy-0.1.2 | ext/stack_tracy/stack_tracy.h |
stack_tracy-0.1.1 | ext/stack_tracy/stack_tracy.h |
stack_tracy-0.1.0 | ext/stack_tracy/stack_tracy.h |