~prafulla-t/drizzle/drz-fast-timer-and-time-profile-refactoring

« back to all changes in this revision

Viewing changes to drizzled/optimizer/range.cc

  • Committer: Prafulla Tekawade
  • Date: 2010-08-17 14:58:30 UTC
  • Revision ID: prafulla_t@users.sourceforge.net-20100817145830-kr6gvo59y65ljd9a
Adding some more integration of timer classes with drizzled
mainline code.
Rtdtc based timer implementation is disabled by default.
because it does not give reliable timing information on certain
machine (maybe due to multi-core architecture?)

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
#include "drizzled/records.h"
133
133
#include "drizzled/internal/my_sys.h"
134
134
#include "drizzled/internal/iocache.h"
 
135
#include "drizzled/time_profile.h"
135
136
 
136
137
#include "drizzled/temporal.h" /* Needed in get_mm_leaf() for timestamp -> datetime comparisons */
137
138
 
420
421
 
421
422
bool optimizer::SqlSelect::skip_record()
422
423
{
 
424
  BLOCK_MICRO_SEC_TIMER("optimizer::SqlSelect::skip_record");
423
425
  return (cond ? cond->val_int() == 0 : 0);
424
426
}
425
427