Sha256: 626cab185d7908f4019def1413b8366a2ca6171721a84c66543f42fbfc6faf4e

Contents?: true

Size: 1.23 KB

Versions: 3

Compression:

Stored size: 1.23 KB

Contents

/* Copyright (C) 2005-2019 Shugo Maeda <shugo@ruby-lang.org> and Charlie Savage <cfis@savagexi.com>
   Please see the LICENSE file for copyright and distribution information */

#ifndef __RP_CALL_INFO_H__
#define __RP_CALL_INFO_H__

#include "ruby_prof.h"
#include "rp_measurement.h"
#include "rp_method.h"

/* Callers and callee information for a method. */
typedef struct prof_call_info_t
{
    prof_method_t *method;
    prof_method_t *parent;
    prof_measurement_t *measurement;
    VALUE object;

    int visits;                             /* Current visits on the stack */

    unsigned int depth;
    unsigned int source_line;
    VALUE source_file;
} prof_call_info_t;

prof_call_info_t *prof_call_info_create(prof_method_t *method, prof_method_t *parent, VALUE source_file, int source_line);
void prof_call_info_mark(void *data);
prof_call_info_t *call_info_table_lookup(st_table* table, st_data_t key);
size_t call_info_table_insert(st_table *table, st_data_t key, prof_call_info_t *val);
prof_call_info_t *prof_get_call_info(VALUE self);
VALUE prof_call_info_wrap(prof_call_info_t* call_info);
void prof_call_info_free(prof_call_info_t* call_info);
void rp_init_call_info(void);

#endif //__RP_CALL_INFO_H__

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-prof-1.1.0-x64-mingw32 ext/ruby_prof/rp_call_info.h
ruby-prof-1.1.0 ext/ruby_prof/rp_call_info.h
ruby-prof-1.0.0 ext/ruby_prof/rp_call_info.h