Include some useful help text

pull/70/head
Craig Tiller 10 years ago
parent 297fafa078
commit 7132d51b2e
  1. 9
      test/core/util/grpc_profiler.c

@ -40,8 +40,15 @@ void grpc_profiler_start(const char *filename) { ProfilerStart(filename); }
void grpc_profiler_stop() { ProfilerStop(); }
#else
#include <grpc/support/log.h>
void grpc_profiler_start(const char *filename) {}
void grpc_profiler_start(const char *filename) {
gpr_log(GPR_DEBUG,
"You do not have google-perftools installed, profiling is disabled");
gpr_log(GPR_DEBUG,
"To install on ubuntu: sudo apt-get install google-perftools "
"libgoogle-perftools-dev");
}
void grpc_profiler_stop(void) {}
#endif

Loading…
Cancel
Save