solarwinds_apm 5.0.0 → 5.1.0.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/CODEOWNERS +1 -0
- data/.github/workflows/build_and_release_gem.yml +23 -27
- data/.github/workflows/build_for_packagecloud.yml +7 -18
- data/.github/workflows/docker-images.yml +23 -17
- data/.github/workflows/run_cpluplus_tests.yml +1 -1
- data/.github/workflows/run_tests.yml +5 -6
- data/.github/workflows/scripts/test_install.rb +14 -9
- data/.github/workflows/test_on_4_linux.yml +3 -3
- data/.gitignore +5 -1
- data/.whitesource +22 -0
- data/CHANGELOG-appoptics.md +766 -0
- data/CHANGELOG.md +9 -753
- data/Gemfile +1 -0
- data/README.md +3 -3
- data/ext/oboe_metal/extconf.rb +5 -5
- data/ext/oboe_metal/lib/liboboe-1.0-alpine-x86_64.so.0.0.0.sha256 +1 -1
- data/ext/oboe_metal/lib/liboboe-1.0-x86_64.so.0.0.0.sha256 +1 -1
- data/ext/oboe_metal/src/README.md +1 -1
- data/ext/oboe_metal/src/VERSION +1 -1
- data/ext/oboe_metal/src/frames.h +1 -1
- data/ext/oboe_metal/src/init_solarwinds_apm.cc +4 -1
- data/ext/oboe_metal/src/logging.h +1 -1
- data/ext/oboe_metal/src/oboe.h +29 -45
- data/ext/oboe_metal/src/oboe_api.cpp +75 -26
- data/ext/oboe_metal/src/{oboe_api.hpp → oboe_api.h} +38 -7
- data/ext/oboe_metal/src/oboe_swig_wrap.cc +674 -84
- data/ext/oboe_metal/src/profiling.cc +1 -1
- data/ext/oboe_metal/src/profiling.h +1 -1
- data/lib/rails/generators/solarwinds_apm/templates/solarwinds_apm_initializer.rb +1 -21
- data/lib/solarwinds_apm/config.rb +9 -0
- data/lib/solarwinds_apm/inst/rack.rb +7 -1
- data/lib/solarwinds_apm/oboe_init_options.rb +12 -1
- data/lib/solarwinds_apm/support/profiling.rb +3 -0
- data/lib/solarwinds_apm/support.rb +1 -0
- data/lib/solarwinds_apm/version.rb +2 -3
- data/lib/solarwinds_apm.rb +1 -1
- data/solarwinds_apm.gemspec +6 -6
- metadata +13 -9
@@ -1893,7 +1893,7 @@ static VALUE mOboe_metal;
|
|
1893
1893
|
#include <stdexcept>
|
1894
1894
|
|
1895
1895
|
|
1896
|
-
#include "oboe_api.
|
1896
|
+
#include "oboe_api.h"
|
1897
1897
|
|
1898
1898
|
|
1899
1899
|
#include <limits.h>
|
@@ -2107,6 +2107,9 @@ SWIG_From_std_string (const std::string& s)
|
|
2107
2107
|
|
2108
2108
|
|
2109
2109
|
|
2110
|
+
#define SWIG_From_double rb_float_new
|
2111
|
+
|
2112
|
+
|
2110
2113
|
/*@SWIG:/usr/local/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2111
2114
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg)
|
2112
2115
|
{
|
@@ -2153,71 +2156,71 @@ SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
|
|
2153
2156
|
}
|
2154
2157
|
|
2155
2158
|
|
2159
|
+
#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
|
2160
|
+
# define SWIG_LONG_LONG_AVAILABLE
|
2161
|
+
#endif
|
2162
|
+
|
2163
|
+
|
2164
|
+
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2156
2165
|
/*@SWIG:/usr/local/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2157
|
-
SWIGINTERN VALUE
|
2166
|
+
SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE arg)
|
2158
2167
|
{
|
2159
2168
|
VALUE *args = (VALUE *)arg;
|
2160
2169
|
VALUE obj = args[0];
|
2161
2170
|
VALUE type = TYPE(obj);
|
2162
|
-
|
2163
|
-
*res =
|
2171
|
+
long long *res = (long long *)(args[1]);
|
2172
|
+
*res = type == T_FIXNUM ? NUM2LL(obj) : rb_big2ll(obj);
|
2164
2173
|
return obj;
|
2165
2174
|
}
|
2166
2175
|
/*@SWIG@*/
|
2167
2176
|
|
2168
2177
|
SWIGINTERN int
|
2169
|
-
|
2178
|
+
SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
|
2170
2179
|
{
|
2171
2180
|
VALUE type = TYPE(obj);
|
2172
|
-
if ((type ==
|
2173
|
-
|
2181
|
+
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
2182
|
+
long long v;
|
2174
2183
|
VALUE a[2];
|
2175
2184
|
a[0] = obj;
|
2176
2185
|
a[1] = (VALUE)(&v);
|
2177
|
-
if (rb_rescue(VALUEFUNC(
|
2186
|
+
if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
|
2178
2187
|
if (val) *val = v;
|
2179
2188
|
return SWIG_OK;
|
2180
2189
|
}
|
2181
2190
|
}
|
2182
2191
|
return SWIG_TypeError;
|
2183
2192
|
}
|
2184
|
-
|
2185
|
-
|
2186
|
-
#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
|
2187
|
-
# define SWIG_LONG_LONG_AVAILABLE
|
2188
2193
|
#endif
|
2189
2194
|
|
2190
2195
|
|
2191
|
-
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2192
2196
|
/*@SWIG:/usr/local/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2193
|
-
SWIGINTERN VALUE
|
2197
|
+
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE arg)
|
2194
2198
|
{
|
2195
2199
|
VALUE *args = (VALUE *)arg;
|
2196
2200
|
VALUE obj = args[0];
|
2197
2201
|
VALUE type = TYPE(obj);
|
2198
|
-
|
2199
|
-
*res =
|
2202
|
+
double *res = (double *)(args[1]);
|
2203
|
+
*res = NUM2DBL(obj); (void)type;
|
2200
2204
|
return obj;
|
2201
2205
|
}
|
2202
2206
|
/*@SWIG@*/
|
2203
2207
|
|
2204
2208
|
SWIGINTERN int
|
2205
|
-
|
2209
|
+
SWIG_AsVal_double (VALUE obj, double *val)
|
2206
2210
|
{
|
2207
2211
|
VALUE type = TYPE(obj);
|
2208
|
-
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
2209
|
-
|
2212
|
+
if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) {
|
2213
|
+
double v;
|
2210
2214
|
VALUE a[2];
|
2211
2215
|
a[0] = obj;
|
2212
2216
|
a[1] = (VALUE)(&v);
|
2213
|
-
if (rb_rescue(VALUEFUNC(
|
2217
|
+
if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2DBL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
|
2214
2218
|
if (val) *val = v;
|
2215
2219
|
return SWIG_OK;
|
2216
2220
|
}
|
2217
2221
|
}
|
2218
2222
|
return SWIG_TypeError;
|
2219
2223
|
}
|
2220
|
-
#endif
|
2221
2224
|
|
2222
2225
|
|
2223
2226
|
#ifdef SWIG_LONG_LONG_AVAILABLE
|
@@ -2584,6 +2587,27 @@ fail:
|
|
2584
2587
|
}
|
2585
2588
|
|
2586
2589
|
|
2590
|
+
SWIGINTERN VALUE
|
2591
|
+
_wrap_Context_setTriggerMode(int argc, VALUE *argv, VALUE self) {
|
2592
|
+
int arg1 ;
|
2593
|
+
int val1 ;
|
2594
|
+
int ecode1 = 0 ;
|
2595
|
+
|
2596
|
+
if ((argc < 1) || (argc > 1)) {
|
2597
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2598
|
+
}
|
2599
|
+
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2600
|
+
if (!SWIG_IsOK(ecode1)) {
|
2601
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","Context::setTriggerMode", 1, argv[0] ));
|
2602
|
+
}
|
2603
|
+
arg1 = static_cast< int >(val1);
|
2604
|
+
Context::setTriggerMode(arg1);
|
2605
|
+
return Qnil;
|
2606
|
+
fail:
|
2607
|
+
return Qnil;
|
2608
|
+
}
|
2609
|
+
|
2610
|
+
|
2587
2611
|
SWIGINTERN VALUE
|
2588
2612
|
_wrap_Context_setDefaultSampleRate(int argc, VALUE *argv, VALUE self) {
|
2589
2613
|
int arg1 ;
|
@@ -2759,13 +2783,13 @@ _wrap_Context_getDecisions__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
2759
2783
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
|
2760
2784
|
}
|
2761
2785
|
if (SWIG_IsTmpObj(res5)) {
|
2762
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
2786
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg5)));
|
2763
2787
|
} else {
|
2764
2788
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
2765
2789
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
|
2766
2790
|
}
|
2767
2791
|
if (SWIG_IsTmpObj(res6)) {
|
2768
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
2792
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
|
2769
2793
|
} else {
|
2770
2794
|
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
2771
2795
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
|
@@ -2960,13 +2984,13 @@ _wrap_Context_getDecisions__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
2960
2984
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
|
2961
2985
|
}
|
2962
2986
|
if (SWIG_IsTmpObj(res5)) {
|
2963
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
2987
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg5)));
|
2964
2988
|
} else {
|
2965
2989
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
2966
2990
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
|
2967
2991
|
}
|
2968
2992
|
if (SWIG_IsTmpObj(res6)) {
|
2969
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
2993
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
|
2970
2994
|
} else {
|
2971
2995
|
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
2972
2996
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
|
@@ -3152,13 +3176,13 @@ _wrap_Context_getDecisions__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
|
3152
3176
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
|
3153
3177
|
}
|
3154
3178
|
if (SWIG_IsTmpObj(res5)) {
|
3155
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
3179
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg5)));
|
3156
3180
|
} else {
|
3157
3181
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
3158
3182
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
|
3159
3183
|
}
|
3160
3184
|
if (SWIG_IsTmpObj(res6)) {
|
3161
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
3185
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
|
3162
3186
|
} else {
|
3163
3187
|
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
3164
3188
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
|
@@ -3333,13 +3357,13 @@ _wrap_Context_getDecisions__SWIG_3(int argc, VALUE *argv, VALUE self) {
|
|
3333
3357
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
|
3334
3358
|
}
|
3335
3359
|
if (SWIG_IsTmpObj(res5)) {
|
3336
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
3360
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg5)));
|
3337
3361
|
} else {
|
3338
3362
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
3339
3363
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
|
3340
3364
|
}
|
3341
3365
|
if (SWIG_IsTmpObj(res6)) {
|
3342
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
3366
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
|
3343
3367
|
} else {
|
3344
3368
|
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
3345
3369
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
|
@@ -3504,13 +3528,13 @@ _wrap_Context_getDecisions__SWIG_4(int argc, VALUE *argv, VALUE self) {
|
|
3504
3528
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
|
3505
3529
|
}
|
3506
3530
|
if (SWIG_IsTmpObj(res5)) {
|
3507
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
3531
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg5)));
|
3508
3532
|
} else {
|
3509
3533
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
3510
3534
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
|
3511
3535
|
}
|
3512
3536
|
if (SWIG_IsTmpObj(res6)) {
|
3513
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
3537
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
|
3514
3538
|
} else {
|
3515
3539
|
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
3516
3540
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
|
@@ -3667,13 +3691,13 @@ _wrap_Context_getDecisions__SWIG_5(int argc, VALUE *argv, VALUE self) {
|
|
3667
3691
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
|
3668
3692
|
}
|
3669
3693
|
if (SWIG_IsTmpObj(res5)) {
|
3670
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
3694
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg5)));
|
3671
3695
|
} else {
|
3672
3696
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
3673
3697
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
|
3674
3698
|
}
|
3675
3699
|
if (SWIG_IsTmpObj(res6)) {
|
3676
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
3700
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
|
3677
3701
|
} else {
|
3678
3702
|
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
3679
3703
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
|
@@ -3822,13 +3846,13 @@ _wrap_Context_getDecisions__SWIG_6(int argc, VALUE *argv, VALUE self) {
|
|
3822
3846
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
|
3823
3847
|
}
|
3824
3848
|
if (SWIG_IsTmpObj(res5)) {
|
3825
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
3849
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg5)));
|
3826
3850
|
} else {
|
3827
3851
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
3828
3852
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
|
3829
3853
|
}
|
3830
3854
|
if (SWIG_IsTmpObj(res6)) {
|
3831
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
3855
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
|
3832
3856
|
} else {
|
3833
3857
|
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
3834
3858
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
|
@@ -3969,13 +3993,13 @@ _wrap_Context_getDecisions__SWIG_7(int argc, VALUE *argv, VALUE self) {
|
|
3969
3993
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
|
3970
3994
|
}
|
3971
3995
|
if (SWIG_IsTmpObj(res5)) {
|
3972
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
3996
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg5)));
|
3973
3997
|
} else {
|
3974
3998
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
3975
3999
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
|
3976
4000
|
}
|
3977
4001
|
if (SWIG_IsTmpObj(res6)) {
|
3978
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
4002
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
|
3979
4003
|
} else {
|
3980
4004
|
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
3981
4005
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
|
@@ -4107,13 +4131,13 @@ _wrap_Context_getDecisions__SWIG_8(int argc, VALUE *argv, VALUE self) {
|
|
4107
4131
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
|
4108
4132
|
}
|
4109
4133
|
if (SWIG_IsTmpObj(res5)) {
|
4110
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
4134
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg5)));
|
4111
4135
|
} else {
|
4112
4136
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
4113
4137
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
|
4114
4138
|
}
|
4115
4139
|
if (SWIG_IsTmpObj(res6)) {
|
4116
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
4140
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
|
4117
4141
|
} else {
|
4118
4142
|
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
4119
4143
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
|
@@ -4234,13 +4258,13 @@ _wrap_Context_getDecisions__SWIG_9(int argc, VALUE *argv, VALUE self) {
|
|
4234
4258
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
|
4235
4259
|
}
|
4236
4260
|
if (SWIG_IsTmpObj(res5)) {
|
4237
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
4261
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg5)));
|
4238
4262
|
} else {
|
4239
4263
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
4240
4264
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
|
4241
4265
|
}
|
4242
4266
|
if (SWIG_IsTmpObj(res6)) {
|
4243
|
-
vresult = SWIG_Ruby_AppendOutput(vresult,
|
4267
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
|
4244
4268
|
} else {
|
4245
4269
|
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
4246
4270
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
|
@@ -4801,7 +4825,7 @@ fail:
|
|
4801
4825
|
|
4802
4826
|
|
4803
4827
|
SWIGINTERN VALUE
|
4804
|
-
|
4828
|
+
_wrap_Context_createEvent__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
4805
4829
|
Event *result = 0 ;
|
4806
4830
|
VALUE vresult = Qnil;
|
4807
4831
|
|
@@ -4832,6 +4856,214 @@ fail:
|
|
4832
4856
|
}
|
4833
4857
|
|
4834
4858
|
|
4859
|
+
SWIGINTERN VALUE
|
4860
|
+
_wrap_Context_createEntry__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
4861
|
+
oboe_metadata_t *arg1 = (oboe_metadata_t *) 0 ;
|
4862
|
+
int64_t arg2 ;
|
4863
|
+
oboe_metadata_t *arg3 = (oboe_metadata_t *) 0 ;
|
4864
|
+
void *argp1 = 0 ;
|
4865
|
+
int res1 = 0 ;
|
4866
|
+
long long val2 ;
|
4867
|
+
int ecode2 = 0 ;
|
4868
|
+
void *argp3 = 0 ;
|
4869
|
+
int res3 = 0 ;
|
4870
|
+
Event *result = 0 ;
|
4871
|
+
VALUE vresult = Qnil;
|
4872
|
+
|
4873
|
+
if ((argc < 3) || (argc > 3)) {
|
4874
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4875
|
+
}
|
4876
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
|
4877
|
+
if (!SWIG_IsOK(res1)) {
|
4878
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "oboe_metadata_t const *","Context::createEntry", 1, argv[0] ));
|
4879
|
+
}
|
4880
|
+
arg1 = reinterpret_cast< oboe_metadata_t * >(argp1);
|
4881
|
+
ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
|
4882
|
+
if (!SWIG_IsOK(ecode2)) {
|
4883
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int64_t","Context::createEntry", 2, argv[1] ));
|
4884
|
+
}
|
4885
|
+
arg2 = static_cast< int64_t >(val2);
|
4886
|
+
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
|
4887
|
+
if (!SWIG_IsOK(res3)) {
|
4888
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "oboe_metadata_t const *","Context::createEntry", 3, argv[2] ));
|
4889
|
+
}
|
4890
|
+
arg3 = reinterpret_cast< oboe_metadata_t * >(argp3);
|
4891
|
+
result = (Event *)Context::createEntry((oboe_metadata_t const *)arg1,arg2,(oboe_metadata_t const *)arg3);
|
4892
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, 0 | 0 );
|
4893
|
+
return vresult;
|
4894
|
+
fail:
|
4895
|
+
return Qnil;
|
4896
|
+
}
|
4897
|
+
|
4898
|
+
|
4899
|
+
SWIGINTERN VALUE
|
4900
|
+
_wrap_Context_createEntry__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
4901
|
+
oboe_metadata_t *arg1 = (oboe_metadata_t *) 0 ;
|
4902
|
+
int64_t arg2 ;
|
4903
|
+
void *argp1 = 0 ;
|
4904
|
+
int res1 = 0 ;
|
4905
|
+
long long val2 ;
|
4906
|
+
int ecode2 = 0 ;
|
4907
|
+
Event *result = 0 ;
|
4908
|
+
VALUE vresult = Qnil;
|
4909
|
+
|
4910
|
+
if ((argc < 2) || (argc > 2)) {
|
4911
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4912
|
+
}
|
4913
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
|
4914
|
+
if (!SWIG_IsOK(res1)) {
|
4915
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "oboe_metadata_t const *","Context::createEntry", 1, argv[0] ));
|
4916
|
+
}
|
4917
|
+
arg1 = reinterpret_cast< oboe_metadata_t * >(argp1);
|
4918
|
+
ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
|
4919
|
+
if (!SWIG_IsOK(ecode2)) {
|
4920
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int64_t","Context::createEntry", 2, argv[1] ));
|
4921
|
+
}
|
4922
|
+
arg2 = static_cast< int64_t >(val2);
|
4923
|
+
result = (Event *)Context::createEntry((oboe_metadata_t const *)arg1,arg2);
|
4924
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, 0 | 0 );
|
4925
|
+
return vresult;
|
4926
|
+
fail:
|
4927
|
+
return Qnil;
|
4928
|
+
}
|
4929
|
+
|
4930
|
+
|
4931
|
+
SWIGINTERN VALUE _wrap_Context_createEntry(int nargs, VALUE *args, VALUE self) {
|
4932
|
+
int argc;
|
4933
|
+
VALUE argv[3];
|
4934
|
+
int ii;
|
4935
|
+
|
4936
|
+
argc = nargs;
|
4937
|
+
if (argc > 3) SWIG_fail;
|
4938
|
+
for (ii = 0; (ii < argc); ++ii) {
|
4939
|
+
argv[ii] = args[ii];
|
4940
|
+
}
|
4941
|
+
if (argc == 2) {
|
4942
|
+
int _v;
|
4943
|
+
void *vptr = 0;
|
4944
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_oboe_metadata_t, 0);
|
4945
|
+
_v = SWIG_CheckState(res);
|
4946
|
+
if (_v) {
|
4947
|
+
{
|
4948
|
+
int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
|
4949
|
+
_v = SWIG_CheckState(res);
|
4950
|
+
}
|
4951
|
+
if (_v) {
|
4952
|
+
return _wrap_Context_createEntry__SWIG_1(nargs, args, self);
|
4953
|
+
}
|
4954
|
+
}
|
4955
|
+
}
|
4956
|
+
if (argc == 3) {
|
4957
|
+
int _v;
|
4958
|
+
void *vptr = 0;
|
4959
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_oboe_metadata_t, 0);
|
4960
|
+
_v = SWIG_CheckState(res);
|
4961
|
+
if (_v) {
|
4962
|
+
{
|
4963
|
+
int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
|
4964
|
+
_v = SWIG_CheckState(res);
|
4965
|
+
}
|
4966
|
+
if (_v) {
|
4967
|
+
void *vptr = 0;
|
4968
|
+
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_oboe_metadata_t, 0);
|
4969
|
+
_v = SWIG_CheckState(res);
|
4970
|
+
if (_v) {
|
4971
|
+
return _wrap_Context_createEntry__SWIG_0(nargs, args, self);
|
4972
|
+
}
|
4973
|
+
}
|
4974
|
+
}
|
4975
|
+
}
|
4976
|
+
|
4977
|
+
fail:
|
4978
|
+
Ruby_Format_OverloadedError( argc, 3, "Context.createEntry",
|
4979
|
+
" Event Context.createEntry(oboe_metadata_t const *md, int64_t timestamp, oboe_metadata_t const *parent_md)\n"
|
4980
|
+
" Event * Context.createEntry(oboe_metadata_t const *md, int64_t timestamp)\n");
|
4981
|
+
|
4982
|
+
return Qnil;
|
4983
|
+
}
|
4984
|
+
|
4985
|
+
|
4986
|
+
SWIGINTERN VALUE
|
4987
|
+
_wrap_Context_createEvent__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
4988
|
+
int64_t arg1 ;
|
4989
|
+
long long val1 ;
|
4990
|
+
int ecode1 = 0 ;
|
4991
|
+
Event *result = 0 ;
|
4992
|
+
VALUE vresult = Qnil;
|
4993
|
+
|
4994
|
+
if ((argc < 1) || (argc > 1)) {
|
4995
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4996
|
+
}
|
4997
|
+
ecode1 = SWIG_AsVal_long_SS_long(argv[0], &val1);
|
4998
|
+
if (!SWIG_IsOK(ecode1)) {
|
4999
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int64_t","Context::createEvent", 1, argv[0] ));
|
5000
|
+
}
|
5001
|
+
arg1 = static_cast< int64_t >(val1);
|
5002
|
+
result = (Event *)Context::createEvent(arg1);
|
5003
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, 0 | 0 );
|
5004
|
+
return vresult;
|
5005
|
+
fail:
|
5006
|
+
return Qnil;
|
5007
|
+
}
|
5008
|
+
|
5009
|
+
|
5010
|
+
SWIGINTERN VALUE _wrap_Context_createEvent(int nargs, VALUE *args, VALUE self) {
|
5011
|
+
int argc;
|
5012
|
+
VALUE argv[1];
|
5013
|
+
int ii;
|
5014
|
+
|
5015
|
+
argc = nargs;
|
5016
|
+
if (argc > 1) SWIG_fail;
|
5017
|
+
for (ii = 0; (ii < argc); ++ii) {
|
5018
|
+
argv[ii] = args[ii];
|
5019
|
+
}
|
5020
|
+
if (argc == 0) {
|
5021
|
+
return _wrap_Context_createEvent__SWIG_0(nargs, args, self);
|
5022
|
+
}
|
5023
|
+
if (argc == 1) {
|
5024
|
+
int _v;
|
5025
|
+
{
|
5026
|
+
int res = SWIG_AsVal_long_SS_long(argv[0], NULL);
|
5027
|
+
_v = SWIG_CheckState(res);
|
5028
|
+
}
|
5029
|
+
if (_v) {
|
5030
|
+
return _wrap_Context_createEvent__SWIG_1(nargs, args, self);
|
5031
|
+
}
|
5032
|
+
}
|
5033
|
+
|
5034
|
+
fail:
|
5035
|
+
Ruby_Format_OverloadedError( argc, 1, "Context.createEvent",
|
5036
|
+
" Event Context.createEvent()\n"
|
5037
|
+
" Event * Context.createEvent(int64_t timestamp)\n");
|
5038
|
+
|
5039
|
+
return Qnil;
|
5040
|
+
}
|
5041
|
+
|
5042
|
+
|
5043
|
+
SWIGINTERN VALUE
|
5044
|
+
_wrap_Context_createExit(int argc, VALUE *argv, VALUE self) {
|
5045
|
+
int64_t arg1 ;
|
5046
|
+
long long val1 ;
|
5047
|
+
int ecode1 = 0 ;
|
5048
|
+
Event *result = 0 ;
|
5049
|
+
VALUE vresult = Qnil;
|
5050
|
+
|
5051
|
+
if ((argc < 1) || (argc > 1)) {
|
5052
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5053
|
+
}
|
5054
|
+
ecode1 = SWIG_AsVal_long_SS_long(argv[0], &val1);
|
5055
|
+
if (!SWIG_IsOK(ecode1)) {
|
5056
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int64_t","Context::createExit", 1, argv[0] ));
|
5057
|
+
}
|
5058
|
+
arg1 = static_cast< int64_t >(val1);
|
5059
|
+
result = (Event *)Context::createExit(arg1);
|
5060
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, 0 | 0 );
|
5061
|
+
return vresult;
|
5062
|
+
fail:
|
5063
|
+
return Qnil;
|
5064
|
+
}
|
5065
|
+
|
5066
|
+
|
4835
5067
|
SWIGINTERN VALUE
|
4836
5068
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
4837
5069
|
_wrap_Context_allocate(VALUE self)
|
@@ -5449,22 +5681,30 @@ fail:
|
|
5449
5681
|
|
5450
5682
|
|
5451
5683
|
SWIGINTERN VALUE
|
5452
|
-
|
5684
|
+
_wrap_Event_send__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
5453
5685
|
Event *arg1 = (Event *) 0 ;
|
5686
|
+
bool arg2 ;
|
5454
5687
|
void *argp1 = 0 ;
|
5455
5688
|
int res1 = 0 ;
|
5689
|
+
bool val2 ;
|
5690
|
+
int ecode2 = 0 ;
|
5456
5691
|
bool result;
|
5457
5692
|
VALUE vresult = Qnil;
|
5458
5693
|
|
5459
|
-
if ((argc <
|
5460
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
5694
|
+
if ((argc < 1) || (argc > 1)) {
|
5695
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5461
5696
|
}
|
5462
5697
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Event, 0 | 0 );
|
5463
5698
|
if (!SWIG_IsOK(res1)) {
|
5464
5699
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","send", 1, self ));
|
5465
5700
|
}
|
5466
5701
|
arg1 = reinterpret_cast< Event * >(argp1);
|
5467
|
-
|
5702
|
+
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
5703
|
+
if (!SWIG_IsOK(ecode2)) {
|
5704
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","send", 2, argv[0] ));
|
5705
|
+
}
|
5706
|
+
arg2 = static_cast< bool >(val2);
|
5707
|
+
result = (bool)(arg1)->send(arg2);
|
5468
5708
|
vresult = SWIG_From_bool(static_cast< bool >(result));
|
5469
5709
|
return vresult;
|
5470
5710
|
fail:
|
@@ -5473,7 +5713,7 @@ fail:
|
|
5473
5713
|
|
5474
5714
|
|
5475
5715
|
SWIGINTERN VALUE
|
5476
|
-
|
5716
|
+
_wrap_Event_send__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
5477
5717
|
Event *arg1 = (Event *) 0 ;
|
5478
5718
|
void *argp1 = 0 ;
|
5479
5719
|
int res1 = 0 ;
|
@@ -5485,10 +5725,10 @@ _wrap_Event_sendProfiling(int argc, VALUE *argv, VALUE self) {
|
|
5485
5725
|
}
|
5486
5726
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Event, 0 | 0 );
|
5487
5727
|
if (!SWIG_IsOK(res1)) {
|
5488
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","
|
5728
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","send", 1, self ));
|
5489
5729
|
}
|
5490
5730
|
arg1 = reinterpret_cast< Event * >(argp1);
|
5491
|
-
result = (bool)(arg1)->
|
5731
|
+
result = (bool)(arg1)->send();
|
5492
5732
|
vresult = SWIG_From_bool(static_cast< bool >(result));
|
5493
5733
|
return vresult;
|
5494
5734
|
fail:
|
@@ -5496,28 +5736,97 @@ fail:
|
|
5496
5736
|
}
|
5497
5737
|
|
5498
5738
|
|
5499
|
-
SWIGINTERN VALUE
|
5500
|
-
|
5501
|
-
|
5502
|
-
|
5503
|
-
void *argp1 = 0 ;
|
5504
|
-
int res1 = 0 ;
|
5505
|
-
void *argp2 = 0 ;
|
5506
|
-
int res2 = 0 ;
|
5507
|
-
bool result;
|
5508
|
-
VALUE vresult = Qnil;
|
5739
|
+
SWIGINTERN VALUE _wrap_Event_send(int nargs, VALUE *args, VALUE self) {
|
5740
|
+
int argc;
|
5741
|
+
VALUE argv[3];
|
5742
|
+
int ii;
|
5509
5743
|
|
5510
|
-
|
5511
|
-
|
5744
|
+
argc = nargs + 1;
|
5745
|
+
argv[0] = self;
|
5746
|
+
if (argc > 3) SWIG_fail;
|
5747
|
+
for (ii = 1; (ii < argc); ++ii) {
|
5748
|
+
argv[ii] = args[ii-1];
|
5512
5749
|
}
|
5513
|
-
|
5514
|
-
|
5515
|
-
|
5750
|
+
if (argc == 1) {
|
5751
|
+
int _v;
|
5752
|
+
void *vptr = 0;
|
5753
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
|
5754
|
+
_v = SWIG_CheckState(res);
|
5755
|
+
if (_v) {
|
5756
|
+
return _wrap_Event_send__SWIG_1(nargs, args, self);
|
5757
|
+
}
|
5516
5758
|
}
|
5517
|
-
|
5518
|
-
|
5519
|
-
|
5520
|
-
|
5759
|
+
if (argc == 2) {
|
5760
|
+
int _v;
|
5761
|
+
void *vptr = 0;
|
5762
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
|
5763
|
+
_v = SWIG_CheckState(res);
|
5764
|
+
if (_v) {
|
5765
|
+
{
|
5766
|
+
int res = SWIG_AsVal_bool(argv[1], NULL);
|
5767
|
+
_v = SWIG_CheckState(res);
|
5768
|
+
}
|
5769
|
+
if (_v) {
|
5770
|
+
return _wrap_Event_send__SWIG_0(nargs, args, self);
|
5771
|
+
}
|
5772
|
+
}
|
5773
|
+
}
|
5774
|
+
|
5775
|
+
fail:
|
5776
|
+
Ruby_Format_OverloadedError( argc, 3, "Event.send",
|
5777
|
+
" bool Event.send(bool with_system_timestamp)\n"
|
5778
|
+
" bool Event.send()\n");
|
5779
|
+
|
5780
|
+
return Qnil;
|
5781
|
+
}
|
5782
|
+
|
5783
|
+
|
5784
|
+
SWIGINTERN VALUE
|
5785
|
+
_wrap_Event_sendProfiling(int argc, VALUE *argv, VALUE self) {
|
5786
|
+
Event *arg1 = (Event *) 0 ;
|
5787
|
+
void *argp1 = 0 ;
|
5788
|
+
int res1 = 0 ;
|
5789
|
+
bool result;
|
5790
|
+
VALUE vresult = Qnil;
|
5791
|
+
|
5792
|
+
if ((argc < 0) || (argc > 0)) {
|
5793
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5794
|
+
}
|
5795
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Event, 0 | 0 );
|
5796
|
+
if (!SWIG_IsOK(res1)) {
|
5797
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","sendProfiling", 1, self ));
|
5798
|
+
}
|
5799
|
+
arg1 = reinterpret_cast< Event * >(argp1);
|
5800
|
+
result = (bool)(arg1)->sendProfiling();
|
5801
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
5802
|
+
return vresult;
|
5803
|
+
fail:
|
5804
|
+
return Qnil;
|
5805
|
+
}
|
5806
|
+
|
5807
|
+
|
5808
|
+
SWIGINTERN VALUE
|
5809
|
+
_wrap_Event_addSpanRef(int argc, VALUE *argv, VALUE self) {
|
5810
|
+
Event *arg1 = (Event *) 0 ;
|
5811
|
+
oboe_metadata_t *arg2 = (oboe_metadata_t *) 0 ;
|
5812
|
+
void *argp1 = 0 ;
|
5813
|
+
int res1 = 0 ;
|
5814
|
+
void *argp2 = 0 ;
|
5815
|
+
int res2 = 0 ;
|
5816
|
+
bool result;
|
5817
|
+
VALUE vresult = Qnil;
|
5818
|
+
|
5819
|
+
if ((argc < 1) || (argc > 1)) {
|
5820
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5821
|
+
}
|
5822
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Event, 0 | 0 );
|
5823
|
+
if (!SWIG_IsOK(res1)) {
|
5824
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","addSpanRef", 1, self ));
|
5825
|
+
}
|
5826
|
+
arg1 = reinterpret_cast< Event * >(argp1);
|
5827
|
+
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
|
5828
|
+
if (!SWIG_IsOK(res2)) {
|
5829
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "oboe_metadata_t const *","addSpanRef", 2, argv[0] ));
|
5521
5830
|
}
|
5522
5831
|
arg2 = reinterpret_cast< oboe_metadata_t * >(argp2);
|
5523
5832
|
result = (bool)(arg1)->addSpanRef((oboe_metadata_t const *)arg2);
|
@@ -6498,6 +6807,7 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
|
|
6498
6807
|
int arg20 ;
|
6499
6808
|
int arg21 ;
|
6500
6809
|
int arg22 ;
|
6810
|
+
int arg23 ;
|
6501
6811
|
int val2 ;
|
6502
6812
|
int ecode2 = 0 ;
|
6503
6813
|
int val4 ;
|
@@ -6528,10 +6838,12 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
|
|
6528
6838
|
int ecode21 = 0 ;
|
6529
6839
|
int val22 ;
|
6530
6840
|
int ecode22 = 0 ;
|
6841
|
+
int val23 ;
|
6842
|
+
int ecode23 = 0 ;
|
6531
6843
|
Reporter *result = 0 ;
|
6532
6844
|
|
6533
|
-
if ((argc <
|
6534
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
6845
|
+
if ((argc < 23) || (argc > 23)) {
|
6846
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 23)",argc); SWIG_fail;
|
6535
6847
|
}
|
6536
6848
|
{
|
6537
6849
|
std::string *ptr = (std::string *)0;
|
@@ -6671,7 +6983,12 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
|
|
6671
6983
|
SWIG_exception_fail(SWIG_ArgError(ecode22), Ruby_Format_TypeError( "", "int","Reporter", 22, argv[21] ));
|
6672
6984
|
}
|
6673
6985
|
arg22 = static_cast< int >(val22);
|
6674
|
-
|
6986
|
+
ecode23 = SWIG_AsVal_int(argv[22], &val23);
|
6987
|
+
if (!SWIG_IsOK(ecode23)) {
|
6988
|
+
SWIG_exception_fail(SWIG_ArgError(ecode23), Ruby_Format_TypeError( "", "int","Reporter", 23, argv[22] ));
|
6989
|
+
}
|
6990
|
+
arg23 = static_cast< int >(val23);
|
6991
|
+
result = (Reporter *)new Reporter(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19,arg20,arg21,arg22,arg23);
|
6675
6992
|
DATA_PTR(self) = result;
|
6676
6993
|
return self;
|
6677
6994
|
fail:
|
@@ -6687,6 +7004,46 @@ free_Reporter(void *self) {
|
|
6687
7004
|
|
6688
7005
|
SWIGINTERN VALUE
|
6689
7006
|
_wrap_Reporter_sendReport__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
7007
|
+
Reporter *arg1 = (Reporter *) 0 ;
|
7008
|
+
Event *arg2 = (Event *) 0 ;
|
7009
|
+
bool arg3 ;
|
7010
|
+
void *argp1 = 0 ;
|
7011
|
+
int res1 = 0 ;
|
7012
|
+
void *argp2 = 0 ;
|
7013
|
+
int res2 = 0 ;
|
7014
|
+
bool val3 ;
|
7015
|
+
int ecode3 = 0 ;
|
7016
|
+
bool result;
|
7017
|
+
VALUE vresult = Qnil;
|
7018
|
+
|
7019
|
+
if ((argc < 2) || (argc > 2)) {
|
7020
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
7021
|
+
}
|
7022
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Reporter, 0 | 0 );
|
7023
|
+
if (!SWIG_IsOK(res1)) {
|
7024
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Reporter *","sendReport", 1, self ));
|
7025
|
+
}
|
7026
|
+
arg1 = reinterpret_cast< Reporter * >(argp1);
|
7027
|
+
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_Event, 0 | 0 );
|
7028
|
+
if (!SWIG_IsOK(res2)) {
|
7029
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Event *","sendReport", 2, argv[0] ));
|
7030
|
+
}
|
7031
|
+
arg2 = reinterpret_cast< Event * >(argp2);
|
7032
|
+
ecode3 = SWIG_AsVal_bool(argv[1], &val3);
|
7033
|
+
if (!SWIG_IsOK(ecode3)) {
|
7034
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","sendReport", 3, argv[1] ));
|
7035
|
+
}
|
7036
|
+
arg3 = static_cast< bool >(val3);
|
7037
|
+
result = (bool)(arg1)->sendReport(arg2,arg3);
|
7038
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
7039
|
+
return vresult;
|
7040
|
+
fail:
|
7041
|
+
return Qnil;
|
7042
|
+
}
|
7043
|
+
|
7044
|
+
|
7045
|
+
SWIGINTERN VALUE
|
7046
|
+
_wrap_Reporter_sendReport__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
6690
7047
|
Reporter *arg1 = (Reporter *) 0 ;
|
6691
7048
|
Event *arg2 = (Event *) 0 ;
|
6692
7049
|
void *argp1 = 0 ;
|
@@ -6718,7 +7075,55 @@ fail:
|
|
6718
7075
|
|
6719
7076
|
|
6720
7077
|
SWIGINTERN VALUE
|
6721
|
-
|
7078
|
+
_wrap_Reporter_sendReport__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
7079
|
+
Reporter *arg1 = (Reporter *) 0 ;
|
7080
|
+
Event *arg2 = (Event *) 0 ;
|
7081
|
+
oboe_metadata_t *arg3 = (oboe_metadata_t *) 0 ;
|
7082
|
+
bool arg4 ;
|
7083
|
+
void *argp1 = 0 ;
|
7084
|
+
int res1 = 0 ;
|
7085
|
+
void *argp2 = 0 ;
|
7086
|
+
int res2 = 0 ;
|
7087
|
+
void *argp3 = 0 ;
|
7088
|
+
int res3 = 0 ;
|
7089
|
+
bool val4 ;
|
7090
|
+
int ecode4 = 0 ;
|
7091
|
+
bool result;
|
7092
|
+
VALUE vresult = Qnil;
|
7093
|
+
|
7094
|
+
if ((argc < 3) || (argc > 3)) {
|
7095
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
7096
|
+
}
|
7097
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Reporter, 0 | 0 );
|
7098
|
+
if (!SWIG_IsOK(res1)) {
|
7099
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Reporter *","sendReport", 1, self ));
|
7100
|
+
}
|
7101
|
+
arg1 = reinterpret_cast< Reporter * >(argp1);
|
7102
|
+
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_Event, 0 | 0 );
|
7103
|
+
if (!SWIG_IsOK(res2)) {
|
7104
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Event *","sendReport", 2, argv[0] ));
|
7105
|
+
}
|
7106
|
+
arg2 = reinterpret_cast< Event * >(argp2);
|
7107
|
+
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
|
7108
|
+
if (!SWIG_IsOK(res3)) {
|
7109
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "oboe_metadata_t *","sendReport", 3, argv[1] ));
|
7110
|
+
}
|
7111
|
+
arg3 = reinterpret_cast< oboe_metadata_t * >(argp3);
|
7112
|
+
ecode4 = SWIG_AsVal_bool(argv[2], &val4);
|
7113
|
+
if (!SWIG_IsOK(ecode4)) {
|
7114
|
+
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","sendReport", 4, argv[2] ));
|
7115
|
+
}
|
7116
|
+
arg4 = static_cast< bool >(val4);
|
7117
|
+
result = (bool)(arg1)->sendReport(arg2,arg3,arg4);
|
7118
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
7119
|
+
return vresult;
|
7120
|
+
fail:
|
7121
|
+
return Qnil;
|
7122
|
+
}
|
7123
|
+
|
7124
|
+
|
7125
|
+
SWIGINTERN VALUE
|
7126
|
+
_wrap_Reporter_sendReport__SWIG_3(int argc, VALUE *argv, VALUE self) {
|
6722
7127
|
Reporter *arg1 = (Reporter *) 0 ;
|
6723
7128
|
Event *arg2 = (Event *) 0 ;
|
6724
7129
|
oboe_metadata_t *arg3 = (oboe_metadata_t *) 0 ;
|
@@ -6759,12 +7164,12 @@ fail:
|
|
6759
7164
|
|
6760
7165
|
SWIGINTERN VALUE _wrap_Reporter_sendReport(int nargs, VALUE *args, VALUE self) {
|
6761
7166
|
int argc;
|
6762
|
-
VALUE argv[
|
7167
|
+
VALUE argv[5];
|
6763
7168
|
int ii;
|
6764
7169
|
|
6765
7170
|
argc = nargs + 1;
|
6766
7171
|
argv[0] = self;
|
6767
|
-
if (argc >
|
7172
|
+
if (argc > 5) SWIG_fail;
|
6768
7173
|
for (ii = 1; (ii < argc); ++ii) {
|
6769
7174
|
argv[ii] = args[ii-1];
|
6770
7175
|
}
|
@@ -6778,11 +7183,50 @@ SWIGINTERN VALUE _wrap_Reporter_sendReport(int nargs, VALUE *args, VALUE self) {
|
|
6778
7183
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Event, 0);
|
6779
7184
|
_v = SWIG_CheckState(res);
|
6780
7185
|
if (_v) {
|
6781
|
-
return
|
7186
|
+
return _wrap_Reporter_sendReport__SWIG_1(nargs, args, self);
|
7187
|
+
}
|
7188
|
+
}
|
7189
|
+
}
|
7190
|
+
if (argc == 3) {
|
7191
|
+
int _v;
|
7192
|
+
void *vptr = 0;
|
7193
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
|
7194
|
+
_v = SWIG_CheckState(res);
|
7195
|
+
if (_v) {
|
7196
|
+
void *vptr = 0;
|
7197
|
+
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Event, 0);
|
7198
|
+
_v = SWIG_CheckState(res);
|
7199
|
+
if (_v) {
|
7200
|
+
void *vptr = 0;
|
7201
|
+
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_oboe_metadata_t, 0);
|
7202
|
+
_v = SWIG_CheckState(res);
|
7203
|
+
if (_v) {
|
7204
|
+
return _wrap_Reporter_sendReport__SWIG_3(nargs, args, self);
|
7205
|
+
}
|
6782
7206
|
}
|
6783
7207
|
}
|
6784
7208
|
}
|
6785
7209
|
if (argc == 3) {
|
7210
|
+
int _v;
|
7211
|
+
void *vptr = 0;
|
7212
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
|
7213
|
+
_v = SWIG_CheckState(res);
|
7214
|
+
if (_v) {
|
7215
|
+
void *vptr = 0;
|
7216
|
+
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Event, 0);
|
7217
|
+
_v = SWIG_CheckState(res);
|
7218
|
+
if (_v) {
|
7219
|
+
{
|
7220
|
+
int res = SWIG_AsVal_bool(argv[2], NULL);
|
7221
|
+
_v = SWIG_CheckState(res);
|
7222
|
+
}
|
7223
|
+
if (_v) {
|
7224
|
+
return _wrap_Reporter_sendReport__SWIG_0(nargs, args, self);
|
7225
|
+
}
|
7226
|
+
}
|
7227
|
+
}
|
7228
|
+
}
|
7229
|
+
if (argc == 4) {
|
6786
7230
|
int _v;
|
6787
7231
|
void *vptr = 0;
|
6788
7232
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
|
@@ -6796,15 +7240,23 @@ SWIGINTERN VALUE _wrap_Reporter_sendReport(int nargs, VALUE *args, VALUE self) {
|
|
6796
7240
|
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_oboe_metadata_t, 0);
|
6797
7241
|
_v = SWIG_CheckState(res);
|
6798
7242
|
if (_v) {
|
6799
|
-
|
7243
|
+
{
|
7244
|
+
int res = SWIG_AsVal_bool(argv[3], NULL);
|
7245
|
+
_v = SWIG_CheckState(res);
|
7246
|
+
}
|
7247
|
+
if (_v) {
|
7248
|
+
return _wrap_Reporter_sendReport__SWIG_2(nargs, args, self);
|
7249
|
+
}
|
6800
7250
|
}
|
6801
7251
|
}
|
6802
7252
|
}
|
6803
7253
|
}
|
6804
7254
|
|
6805
7255
|
fail:
|
6806
|
-
Ruby_Format_OverloadedError( argc,
|
7256
|
+
Ruby_Format_OverloadedError( argc, 5, "Reporter.sendReport",
|
7257
|
+
" bool Reporter.sendReport(Event *evt, bool with_system_timestamp)\n"
|
6807
7258
|
" bool Reporter.sendReport(Event *evt)\n"
|
7259
|
+
" bool Reporter.sendReport(Event *evt, oboe_metadata_t *md, bool with_system_timestamp)\n"
|
6808
7260
|
" bool Reporter.sendReport(Event *evt, oboe_metadata_t *md)\n");
|
6809
7261
|
|
6810
7262
|
return Qnil;
|
@@ -6813,6 +7265,46 @@ fail:
|
|
6813
7265
|
|
6814
7266
|
SWIGINTERN VALUE
|
6815
7267
|
_wrap_Reporter_sendStatus__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
7268
|
+
Reporter *arg1 = (Reporter *) 0 ;
|
7269
|
+
Event *arg2 = (Event *) 0 ;
|
7270
|
+
bool arg3 ;
|
7271
|
+
void *argp1 = 0 ;
|
7272
|
+
int res1 = 0 ;
|
7273
|
+
void *argp2 = 0 ;
|
7274
|
+
int res2 = 0 ;
|
7275
|
+
bool val3 ;
|
7276
|
+
int ecode3 = 0 ;
|
7277
|
+
bool result;
|
7278
|
+
VALUE vresult = Qnil;
|
7279
|
+
|
7280
|
+
if ((argc < 2) || (argc > 2)) {
|
7281
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
7282
|
+
}
|
7283
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Reporter, 0 | 0 );
|
7284
|
+
if (!SWIG_IsOK(res1)) {
|
7285
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Reporter *","sendStatus", 1, self ));
|
7286
|
+
}
|
7287
|
+
arg1 = reinterpret_cast< Reporter * >(argp1);
|
7288
|
+
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_Event, 0 | 0 );
|
7289
|
+
if (!SWIG_IsOK(res2)) {
|
7290
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Event *","sendStatus", 2, argv[0] ));
|
7291
|
+
}
|
7292
|
+
arg2 = reinterpret_cast< Event * >(argp2);
|
7293
|
+
ecode3 = SWIG_AsVal_bool(argv[1], &val3);
|
7294
|
+
if (!SWIG_IsOK(ecode3)) {
|
7295
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","sendStatus", 3, argv[1] ));
|
7296
|
+
}
|
7297
|
+
arg3 = static_cast< bool >(val3);
|
7298
|
+
result = (bool)(arg1)->sendStatus(arg2,arg3);
|
7299
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
7300
|
+
return vresult;
|
7301
|
+
fail:
|
7302
|
+
return Qnil;
|
7303
|
+
}
|
7304
|
+
|
7305
|
+
|
7306
|
+
SWIGINTERN VALUE
|
7307
|
+
_wrap_Reporter_sendStatus__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
6816
7308
|
Reporter *arg1 = (Reporter *) 0 ;
|
6817
7309
|
Event *arg2 = (Event *) 0 ;
|
6818
7310
|
void *argp1 = 0 ;
|
@@ -6844,7 +7336,55 @@ fail:
|
|
6844
7336
|
|
6845
7337
|
|
6846
7338
|
SWIGINTERN VALUE
|
6847
|
-
|
7339
|
+
_wrap_Reporter_sendStatus__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
7340
|
+
Reporter *arg1 = (Reporter *) 0 ;
|
7341
|
+
Event *arg2 = (Event *) 0 ;
|
7342
|
+
oboe_metadata_t *arg3 = (oboe_metadata_t *) 0 ;
|
7343
|
+
bool arg4 ;
|
7344
|
+
void *argp1 = 0 ;
|
7345
|
+
int res1 = 0 ;
|
7346
|
+
void *argp2 = 0 ;
|
7347
|
+
int res2 = 0 ;
|
7348
|
+
void *argp3 = 0 ;
|
7349
|
+
int res3 = 0 ;
|
7350
|
+
bool val4 ;
|
7351
|
+
int ecode4 = 0 ;
|
7352
|
+
bool result;
|
7353
|
+
VALUE vresult = Qnil;
|
7354
|
+
|
7355
|
+
if ((argc < 3) || (argc > 3)) {
|
7356
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
7357
|
+
}
|
7358
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Reporter, 0 | 0 );
|
7359
|
+
if (!SWIG_IsOK(res1)) {
|
7360
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Reporter *","sendStatus", 1, self ));
|
7361
|
+
}
|
7362
|
+
arg1 = reinterpret_cast< Reporter * >(argp1);
|
7363
|
+
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_Event, 0 | 0 );
|
7364
|
+
if (!SWIG_IsOK(res2)) {
|
7365
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Event *","sendStatus", 2, argv[0] ));
|
7366
|
+
}
|
7367
|
+
arg2 = reinterpret_cast< Event * >(argp2);
|
7368
|
+
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
|
7369
|
+
if (!SWIG_IsOK(res3)) {
|
7370
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "oboe_metadata_t *","sendStatus", 3, argv[1] ));
|
7371
|
+
}
|
7372
|
+
arg3 = reinterpret_cast< oboe_metadata_t * >(argp3);
|
7373
|
+
ecode4 = SWIG_AsVal_bool(argv[2], &val4);
|
7374
|
+
if (!SWIG_IsOK(ecode4)) {
|
7375
|
+
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","sendStatus", 4, argv[2] ));
|
7376
|
+
}
|
7377
|
+
arg4 = static_cast< bool >(val4);
|
7378
|
+
result = (bool)(arg1)->sendStatus(arg2,arg3,arg4);
|
7379
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
7380
|
+
return vresult;
|
7381
|
+
fail:
|
7382
|
+
return Qnil;
|
7383
|
+
}
|
7384
|
+
|
7385
|
+
|
7386
|
+
SWIGINTERN VALUE
|
7387
|
+
_wrap_Reporter_sendStatus__SWIG_3(int argc, VALUE *argv, VALUE self) {
|
6848
7388
|
Reporter *arg1 = (Reporter *) 0 ;
|
6849
7389
|
Event *arg2 = (Event *) 0 ;
|
6850
7390
|
oboe_metadata_t *arg3 = (oboe_metadata_t *) 0 ;
|
@@ -6885,12 +7425,12 @@ fail:
|
|
6885
7425
|
|
6886
7426
|
SWIGINTERN VALUE _wrap_Reporter_sendStatus(int nargs, VALUE *args, VALUE self) {
|
6887
7427
|
int argc;
|
6888
|
-
VALUE argv[
|
7428
|
+
VALUE argv[5];
|
6889
7429
|
int ii;
|
6890
7430
|
|
6891
7431
|
argc = nargs + 1;
|
6892
7432
|
argv[0] = self;
|
6893
|
-
if (argc >
|
7433
|
+
if (argc > 5) SWIG_fail;
|
6894
7434
|
for (ii = 1; (ii < argc); ++ii) {
|
6895
7435
|
argv[ii] = args[ii-1];
|
6896
7436
|
}
|
@@ -6904,7 +7444,7 @@ SWIGINTERN VALUE _wrap_Reporter_sendStatus(int nargs, VALUE *args, VALUE self) {
|
|
6904
7444
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Event, 0);
|
6905
7445
|
_v = SWIG_CheckState(res);
|
6906
7446
|
if (_v) {
|
6907
|
-
return
|
7447
|
+
return _wrap_Reporter_sendStatus__SWIG_1(nargs, args, self);
|
6908
7448
|
}
|
6909
7449
|
}
|
6910
7450
|
}
|
@@ -6922,15 +7462,62 @@ SWIGINTERN VALUE _wrap_Reporter_sendStatus(int nargs, VALUE *args, VALUE self) {
|
|
6922
7462
|
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_oboe_metadata_t, 0);
|
6923
7463
|
_v = SWIG_CheckState(res);
|
6924
7464
|
if (_v) {
|
6925
|
-
return
|
7465
|
+
return _wrap_Reporter_sendStatus__SWIG_3(nargs, args, self);
|
7466
|
+
}
|
7467
|
+
}
|
7468
|
+
}
|
7469
|
+
}
|
7470
|
+
if (argc == 3) {
|
7471
|
+
int _v;
|
7472
|
+
void *vptr = 0;
|
7473
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
|
7474
|
+
_v = SWIG_CheckState(res);
|
7475
|
+
if (_v) {
|
7476
|
+
void *vptr = 0;
|
7477
|
+
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Event, 0);
|
7478
|
+
_v = SWIG_CheckState(res);
|
7479
|
+
if (_v) {
|
7480
|
+
{
|
7481
|
+
int res = SWIG_AsVal_bool(argv[2], NULL);
|
7482
|
+
_v = SWIG_CheckState(res);
|
7483
|
+
}
|
7484
|
+
if (_v) {
|
7485
|
+
return _wrap_Reporter_sendStatus__SWIG_0(nargs, args, self);
|
7486
|
+
}
|
7487
|
+
}
|
7488
|
+
}
|
7489
|
+
}
|
7490
|
+
if (argc == 4) {
|
7491
|
+
int _v;
|
7492
|
+
void *vptr = 0;
|
7493
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
|
7494
|
+
_v = SWIG_CheckState(res);
|
7495
|
+
if (_v) {
|
7496
|
+
void *vptr = 0;
|
7497
|
+
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Event, 0);
|
7498
|
+
_v = SWIG_CheckState(res);
|
7499
|
+
if (_v) {
|
7500
|
+
void *vptr = 0;
|
7501
|
+
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_oboe_metadata_t, 0);
|
7502
|
+
_v = SWIG_CheckState(res);
|
7503
|
+
if (_v) {
|
7504
|
+
{
|
7505
|
+
int res = SWIG_AsVal_bool(argv[3], NULL);
|
7506
|
+
_v = SWIG_CheckState(res);
|
7507
|
+
}
|
7508
|
+
if (_v) {
|
7509
|
+
return _wrap_Reporter_sendStatus__SWIG_2(nargs, args, self);
|
7510
|
+
}
|
6926
7511
|
}
|
6927
7512
|
}
|
6928
7513
|
}
|
6929
7514
|
}
|
6930
7515
|
|
6931
7516
|
fail:
|
6932
|
-
Ruby_Format_OverloadedError( argc,
|
7517
|
+
Ruby_Format_OverloadedError( argc, 5, "Reporter.sendStatus",
|
7518
|
+
" bool Reporter.sendStatus(Event *evt, bool with_system_timestamp)\n"
|
6933
7519
|
" bool Reporter.sendStatus(Event *evt)\n"
|
7520
|
+
" bool Reporter.sendStatus(Event *evt, oboe_metadata_t *md, bool with_system_timestamp)\n"
|
6934
7521
|
" bool Reporter.sendStatus(Event *evt, oboe_metadata_t *md)\n");
|
6935
7522
|
|
6936
7523
|
return Qnil;
|
@@ -7465,6 +8052,7 @@ SWIGEXPORT void Init_oboe_metal(void) {
|
|
7465
8052
|
rb_define_alloc_func(SwigClassContext.klass, _wrap_Context_allocate);
|
7466
8053
|
rb_define_method(SwigClassContext.klass, "initialize", VALUEFUNC(_wrap_new_Context), -1);
|
7467
8054
|
rb_define_singleton_method(SwigClassContext.klass, "setTracingMode", VALUEFUNC(_wrap_Context_setTracingMode), -1);
|
8055
|
+
rb_define_singleton_method(SwigClassContext.klass, "setTriggerMode", VALUEFUNC(_wrap_Context_setTriggerMode), -1);
|
7468
8056
|
rb_define_singleton_method(SwigClassContext.klass, "setDefaultSampleRate", VALUEFUNC(_wrap_Context_setDefaultSampleRate), -1);
|
7469
8057
|
rb_define_singleton_method(SwigClassContext.klass, "getDecisions", VALUEFUNC(_wrap_Context_getDecisions), -1);
|
7470
8058
|
rb_define_singleton_method(SwigClassContext.klass, "get", VALUEFUNC(_wrap_Context_get), -1);
|
@@ -7480,8 +8068,10 @@ SWIGEXPORT void Init_oboe_metal(void) {
|
|
7480
8068
|
rb_define_singleton_method(SwigClassContext.klass, "shutdown", VALUEFUNC(_wrap_Context_shutdown), -1);
|
7481
8069
|
rb_define_singleton_method(SwigClassContext.klass, "isReady", VALUEFUNC(_wrap_Context_isReady), -1);
|
7482
8070
|
rb_define_singleton_method(SwigClassContext.klass, "isLambda", VALUEFUNC(_wrap_Context_isLambda), -1);
|
7483
|
-
rb_define_singleton_method(SwigClassContext.klass, "createEvent", VALUEFUNC(_wrap_Context_createEvent), -1);
|
7484
8071
|
rb_define_singleton_method(SwigClassContext.klass, "startTrace", VALUEFUNC(_wrap_Context_startTrace), -1);
|
8072
|
+
rb_define_singleton_method(SwigClassContext.klass, "createEntry", VALUEFUNC(_wrap_Context_createEntry), -1);
|
8073
|
+
rb_define_singleton_method(SwigClassContext.klass, "createEvent", VALUEFUNC(_wrap_Context_createEvent), -1);
|
8074
|
+
rb_define_singleton_method(SwigClassContext.klass, "createExit", VALUEFUNC(_wrap_Context_createExit), -1);
|
7485
8075
|
SwigClassContext.mark = 0;
|
7486
8076
|
SwigClassContext.destroy = (void (*)(void *)) free_Context;
|
7487
8077
|
SwigClassContext.trackObjects = 0;
|