Sha256: 652676333c83017cdd31bac3a58560ad03101ffdb77d883da0ad7019430bf885

Contents?: true

Size: 1.08 KB

Versions: 20

Compression:

Stored size: 1.08 KB

Contents

/* 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 __RP_THREAD__
#define __RP_THREAD__

/* Profiling information for a thread. */
typedef struct
{
    VALUE object;                     /* Cache to wrapped object */
    VALUE methods;                    /* Array of RubyProf::MethodInfo */
    VALUE thread_id;                  /* Thread id */
    VALUE fiber_id;                   /* Fiber id */
    st_table* method_table;           /* Methods called in the thread */
    prof_stack_t* stack;              /* Stack of frames */
} thread_data_t;

void rp_init_thread();
st_table * threads_table_create();
thread_data_t* switch_thread(void* prof, VALUE thread_id, VALUE fiber_id);
void threads_table_free(st_table *table);
VALUE prof_thread_wrap(thread_data_t *thread);
void prof_thread_mark(thread_data_t *thread);
int pause_thread(st_data_t key, st_data_t value, st_data_t data);
int unpause_thread(st_data_t key, st_data_t value, st_data_t data);

#endif //__RP_THREAD__

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
ruby-prof-0.17.0 ext/ruby_prof/rp_thread.h
ruby-prof-0.16.2 ext/ruby_prof/rp_thread.h
ruby-prof-0.16.1 ext/ruby_prof/rp_thread.h
ruby-prof-0.16.0 ext/ruby_prof/rp_thread.h
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/ruby-prof-0.15.9/ext/ruby_prof/rp_thread.h
ruby-prof-0.15.9 ext/ruby_prof/rp_thread.h
ruby-prof-0.15.8 ext/ruby_prof/rp_thread.h
ruby-prof-0.15.7 ext/ruby_prof/rp_thread.h
ruby-prof-0.15.6 ext/ruby_prof/rp_thread.h
ruby-prof-0.15.5 ext/ruby_prof/rp_thread.h
ruby-prof-0.15.4 ext/ruby_prof/rp_thread.h
ruby-prof-0.15.3 ext/ruby_prof/rp_thread.h
ruby-prof-0.15.2 ext/ruby_prof/rp_thread.h
ruby-prof-0.15.1 ext/ruby_prof/rp_thread.h
ruby-prof-0.15.0 ext/ruby_prof/rp_thread.h
ruby-prof-0.14.2 ext/ruby_prof/rp_thread.h
ruby-prof-0.14.1 ext/ruby_prof/rp_thread.h
ruby-prof-0.14.0 ext/ruby_prof/rp_thread.h
ruby-prof-0.13.1 ext/ruby_prof/rp_thread.h
ruby-prof-0.13.0 ext/ruby_prof/rp_thread.h