Skip to content

Commit

Permalink
make MVM_telemetry_* functions MVM_PUBLIC
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Apr 22, 2017
1 parent f606d56 commit 134d8f2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions src/profiler/telemeh.c
Expand Up @@ -118,7 +118,7 @@ struct TelemetryRecord *newRecord()

static unsigned int intervalIDCounter = 0;

void MVM_telemetry_timestamp(MVMThreadContext *threadID, const char *description)
MVM_PUBLIC void MVM_telemetry_timestamp(MVMThreadContext *threadID, const char *description)
{
struct TelemetryRecord *record;

Expand All @@ -132,7 +132,7 @@ void MVM_telemetry_timestamp(MVMThreadContext *threadID, const char *description
record->timeStamp.description = description;
}

unsigned int MVM_telemetry_interval_start(MVMThreadContext *threadID, const char *description)
MVM_PUBLIC unsigned int MVM_telemetry_interval_start(MVMThreadContext *threadID, const char *description)
{
struct TelemetryRecord *record;

Expand All @@ -153,7 +153,7 @@ unsigned int MVM_telemetry_interval_start(MVMThreadContext *threadID, const char
return intervalID;
}

void MVM_telemetry_interval_stop(MVMThreadContext *threadID, int intervalID, const char *description)
MVM_PUBLIC void MVM_telemetry_interval_stop(MVMThreadContext *threadID, int intervalID, const char *description)
{
struct TelemetryRecord *record;

Expand All @@ -168,7 +168,7 @@ void MVM_telemetry_interval_stop(MVMThreadContext *threadID, int intervalID, con
record->interval.description = description;
}

void MVM_telemetry_interval_annotate(uintptr_t subject, int intervalID, const char *description) {
MVM_PUBLIC void MVM_telemetry_interval_annotate(uintptr_t subject, int intervalID, const char *description) {
struct TelemetryRecord *record;

if (!telemetry_active) { return; }
Expand All @@ -180,7 +180,7 @@ void MVM_telemetry_interval_annotate(uintptr_t subject, int intervalID, const ch
record->annotation.description = description;
}

void MVM_telemetry_interval_annotate_dynamic(uintptr_t subject, int intervalID, char *description) {
MVM_PUBLIC void MVM_telemetry_interval_annotate_dynamic(uintptr_t subject, int intervalID, char *description) {
struct TelemetryRecord *record;
char *temp;

Expand Down Expand Up @@ -284,7 +284,7 @@ void *backgroundSerialization(void *outfile)
return NULL;
}

void MVM_telemetry_init(FILE *outfile)
MVM_PUBLIC void MVM_telemetry_init(FILE *outfile)
{
struct TelemetryRecord *calibrationRecord;
struct TelemetryRecord *epochRecord;
Expand Down Expand Up @@ -312,7 +312,7 @@ void MVM_telemetry_init(FILE *outfile)
}
}

void MVM_telemetry_finish()
MVM_PUBLIC void MVM_telemetry_finish()
{
continueBackgroundSerialization = 0;
uv_thread_join(&backgroundSerializationThread);
Expand Down
14 changes: 7 additions & 7 deletions src/profiler/telemeh.h
@@ -1,11 +1,11 @@
#include "stdint.h"

void MVM_telemetry_timestamp(MVMThreadContext *threadID, const char *description);
MVM_PUBLIC void MVM_telemetry_timestamp(MVMThreadContext *threadID, const char *description);

unsigned int MVM_telemetry_interval_start(MVMThreadContext *threadID, const char *description);
void MVM_telemetry_interval_stop(MVMThreadContext *threadID, int intervalID, const char *description);
void MVM_telemetry_interval_annotate(uintptr_t subject, int intervalID, const char *description);
void MVM_telemetry_interval_annotate_dynamic(uintptr_t subject, int intervalID, char *description);
MVM_PUBLIC unsigned int MVM_telemetry_interval_start(MVMThreadContext *threadID, const char *description);
MVM_PUBLIC void MVM_telemetry_interval_stop(MVMThreadContext *threadID, int intervalID, const char *description);
MVM_PUBLIC void MVM_telemetry_interval_annotate(uintptr_t subject, int intervalID, const char *description);
MVM_PUBLIC void MVM_telemetry_interval_annotate_dynamic(uintptr_t subject, int intervalID, char *description);

void MVM_telemetry_init(FILE *outfile);
void MVM_telemetry_finish();
MVM_PUBLIC void MVM_telemetry_init(FILE *outfile);
MVM_PUBLIC void MVM_telemetry_finish();

0 comments on commit 134d8f2

Please sign in to comment.