code: public Q profiler(QueryProfiler profiler) {
          Preconditions.checkNotNull(profiler);
          this.profiler=profiler;
          return getThis();
      }
docs: Sets the query profiler to observe this query. Must be set before the query is executed to take effect.
  
  @param profiler
  @return