Skip to content

Commit

Permalink
Fix issue with get_global_vars_memory_stats() (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
andarut authored Feb 9, 2024
1 parent 01c3265 commit 03eb7b4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions runtime/kphp_tracing.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "runtime/critical_section.h"
#include "runtime/kphp_core.h"
#include "runtime/refcountable_php_classes.h"
#include "runtime/dummy-visitor-methods.h"

// for detailed comments about tracing in general, see kphp_tracing.cpp

Expand Down Expand Up @@ -109,7 +110,9 @@ void on_php_script_finish_terminated();

// class KphpDiv

struct C$KphpDiv : public refcountable_php_classes<C$KphpDiv> {
struct C$KphpDiv : public refcountable_php_classes<C$KphpDiv>, private DummyVisitorMethods {
using DummyVisitorMethods::accept;

double start_timestamp{0.0}; // all fields are inaccessible from PHP code
double end_timestamp{0.0}; // (PHP code can only call f$KphpDiv$$ functions)
int64_t trace_id{0};
Expand All @@ -129,7 +132,9 @@ int64_t f$KphpDiv$$assignTraceCtx(class_instance<C$KphpDiv> v$this, int64_t int1

// class KphpSpan

struct C$KphpSpan : public refcountable_php_classes<C$KphpSpan> {
struct C$KphpSpan : public refcountable_php_classes<C$KphpSpan>, private DummyVisitorMethods {
using DummyVisitorMethods::accept;

int span_id{0};

C$KphpSpan() = default;
Expand Down

0 comments on commit 03eb7b4

Please sign in to comment.