ext/pyroscope/pyroscope.c in pyroscope-0.0.23 vs ext/pyroscope/pyroscope.c in pyroscope-0.1.0

- old
+ new

@@ -9,11 +9,10 @@ int Start(char*, char*, char*, char*, int, int, char*); int Stop(); int ChangeName(char*); int SetTag(char*, char*); int TestLogger(); -int SetLoggerLevel(int); char* BuildSummary(); static VALUE pyroscope_start(VALUE self, VALUE appName, VALUE serverAddress, VALUE authToken, VALUE sampleRate, VALUE withSubprocesses, VALUE logLevel) { VALUE r_appName = StringValue(appName); @@ -67,16 +66,10 @@ int res = TestLogger(); return INT2FIX(res); } static VALUE -pyroscope_set_logger_level(VALUE self, VALUE level) { - int res = SetLoggerLevel(FIX2INT(level)); - return INT2FIX(res); -} - -static VALUE pyroscope_build_summary(VALUE self) { char *c_summary = BuildSummary(); VALUE r_summary = rb_str_new_cstr(c_summary); free(c_summary); return r_summary; @@ -88,8 +81,7 @@ rb_define_module_function(rb_Pyroscope, "_start", pyroscope_start, 6); rb_define_module_function(rb_Pyroscope, "_stop", pyroscope_stop, 0); rb_define_module_function(rb_Pyroscope, "_change_name", pyroscope_change_name, 1); rb_define_module_function(rb_Pyroscope, "_set_tag", pyroscope_set_tag, 2); rb_define_module_function(rb_Pyroscope, "_test_logger", pyroscope_test_logger, 0); - rb_define_module_function(rb_Pyroscope, "_set_logger_level", pyroscope_set_logger_level, 1); rb_define_module_function(rb_Pyroscope, "_build_summary", pyroscope_build_summary, 0); }