Changeset: 7cb15cb98fc1 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7cb15cb98fc1 Modified Files: monetdb5/mal/mal_profiler.c monetdb5/mal/mal_profiler.h Branch: default Log Message:
Export CPU load for use in holisitic indexing. diffs (26 lines): diff --git a/monetdb5/mal/mal_profiler.c b/monetdb5/mal/mal_profiler.c --- a/monetdb5/mal/mal_profiler.c +++ b/monetdb5/mal/mal_profiler.c @@ -1363,6 +1363,11 @@ static int getCPULoad(char cpuload[BUFSI return 0; } +// Give users the option to check for the system load between two heart beats +double HeartbeatCPUload(void) +{ + return corestat[255].load; +} void profilerGetCPUStat(lng *user, lng *nice, lng *sys, lng *idle, lng *iowait) { (void) getCPULoad(0); diff --git a/monetdb5/mal/mal_profiler.h b/monetdb5/mal/mal_profiler.h --- a/monetdb5/mal/mal_profiler.h +++ b/monetdb5/mal/mal_profiler.h @@ -101,6 +101,7 @@ mal_export str stopProfiling(void); mal_export str cleanupProfiler(void); mal_export void initHeartbeat(void); mal_export void stopHeartbeat(void); +mal_export double HeartbeatCPUload(void); mal_export int instrFilter(InstrPtr pci, str mod, str fcn); mal_export void setFilter(Module cntxt, str mod, str fcn); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list