Sha256: 12f7346bbef45c3a943fee336349f4182379f56f7ea778b90c9bec8ed14ac7db
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
#ifndef STACK_TRACY_H #define STACK_TRACY_H #include <ruby.h> #include <stdbool.h> #include <time.h> #include <string.h> #ifndef RUBY_VM #include <node.h> typedef rb_event_t rb_event_flag_t; #define rb_sourcefile() (node ? node->nd_file : 0) #define rb_sourceline() (node ? nd_line(node) : 0) #endif 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 VALUE rbString; static ID rbTracy; 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stack_tracy-0.1.9 | ext/stack_tracy/stack_tracy.h |