1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
/* Copyright (C) 2005-2013 Shugo Maeda <shugo@ruby-lang.org> and Charlie Savage <cfis@savagexi.com>
Please see the LICENSE file for copyright and distribution information */
#ifndef __RUBY_PROF_H__
#define __RUBY_PROF_H__
#include <ruby.h>
#include <stdio.h>
#if RUBY_PROF_RUBY_VERSION == 10806
# error 1.8.6 is not supported. Please upgrade to 1.9.3 or higher.
#endif
#if RUBY_PROF_RUBY_VERSION == 10807
# error 1.8.7 is not supported. Please upgrade to 1.9.3 or higher.
#endif
#if RUBY_PROF_RUBY_VERSION == 10900
# error 1.9.0 is not supported. Please upgrade to 1.9.3 or higher.
#endif
#if RUBY_PROF_RUBY_VERSION == 10901
# error 1.9.1 is not supported. Please upgrade to 1.9.3 or higher.
#endif
#if RUBY_PROF_RUBY_VERSION == 10902
# error 1.9.2 is not supported. Please upgrade to 1.9.3 or higher.
#endif
#include "rp_measure.h"
#include "rp_method.h"
#include "rp_call_info.h"
#include "rp_stack.h"
#include "rp_thread.h"
extern VALUE mProf;
extern VALUE cProfile;
void method_key(prof_method_key_t* key, VALUE klass, ID mid);
typedef struct
{
VALUE running;
VALUE paused;
prof_measurer_t* measurer;
VALUE threads;
st_table* threads_tbl;
st_table* exclude_threads_tbl;
st_table* include_threads_tbl;
st_table* exclude_methods_tbl;
thread_data_t* last_thread_data;
double measurement_at_pause_resume;
int merge_fibers;
} prof_profile_t;
#endif //__RUBY_PROF_H__
|