Skip to content

Commit

Permalink
Include some useful help text
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller committed Jan 16, 2015
1 parent 297fafa commit 7132d51
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/core/util/grpc_profiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7132d51

Please sign in to comment.