rocksdb/util
Torrie Fischer 6614a48418 Refactor PerfStepTimer to stop on destruct
This eliminates the need to remember to call PERF_TIMER_STOP when a section has
been timed. This allows more useful design with the perf timers and enables
possible return value optimizations. Simplistic example:

class Foo {
  public:
    Foo(int v) : m_v(v);
  private:
    int m_v;
}

Foo makeFrobbedFoo(int *errno)
{
  *errno = 0;
  return Foo();
}

Foo bar(int *errno)
{
  PERF_TIMER_GUARD(some_timer);

  return makeFrobbedFoo(errno);
}

int main(int argc, char[] argv)
{
  Foo f;
  int errno;

  f = bar(&errno);

  if (errno)
    return -1;
  return 0;
}

After bar() is called, perf_context.some_timer would be incremented as if
Stop(&perf_context.some_timer) was called at the end, and the compiler is still
able to produce optimizations on the return value from makeFrobbedFoo() through
to main().
2014-09-02 12:04:22 -07:00
..
arena.cc Fix typo huage => huge 2014-08-14 17:01:20 -07:00
arena.h
arena_test.cc
auto_roll_logger.cc
auto_roll_logger.h
auto_roll_logger_test.cc attempt to fix auto_roll_logger_test 2014-08-18 10:23:18 -07:00
autovector.h Fix autovector iterator increment/decrement comments 2014-08-14 14:56:11 -07:00
autovector_test.cc
benchharness.cc
benchharness.h
benchharness_test.cc
blob_store.cc
blob_store.h
blob_store_test.cc
bloom.cc Changes to support unity build: 2014-08-11 13:22:47 -04:00
bloom_test.cc
build_version.h
cache.cc
cache_test.cc
coding.cc Removing BitStream* functions 2014-08-19 06:48:21 -07:00
coding.h Removing BitStream* functions 2014-08-19 06:48:21 -07:00
coding_test.cc Remove BitStream* tests 2014-08-19 09:52:54 -04:00
comparator.cc
crc32c.cc
crc32c.h
crc32c_test.cc
db_info_dummper.cc fix compile error under Mac OS X 2014-08-14 20:01:01 +08:00
dynamic_bloom.cc Changes to support unity build: 2014-08-11 13:22:47 -04:00
dynamic_bloom.h
dynamic_bloom_test.cc
env.cc
env_hdfs.cc
env_posix.cc Fix assertion in PosixRandomAccessFile 2014-08-26 15:28:36 -04:00
env_test.cc
filelock_test.cc
filter_policy.cc
hash.cc
hash.h Changes to support unity build: 2014-08-11 13:22:47 -04:00
hash_cuckoo_rep.cc
hash_cuckoo_rep.h
hash_linklist_rep.cc
hash_linklist_rep.h
hash_skiplist_rep.cc
hash_skiplist_rep.h
histogram.cc
histogram.h
histogram_test.cc
iostats_context.cc Fix ios compile 2014-08-28 12:46:05 -04:00
iostats_context_imp.h Fix ios compile 2014-08-28 12:46:05 -04:00
ldb_cmd.cc move block based table related options BlockBasedTableOptions 2014-08-25 14:22:05 -07:00
ldb_cmd.h
ldb_cmd_execute_result.h
ldb_tool.cc
log_buffer.cc
log_buffer.h
log_write_bench.cc
logging.cc
logging.h
manual_compaction_test.cc
murmurhash.cc
murmurhash.h
mutexlock.h
options.cc improve OptimizeForPointLookup() 2014-08-26 14:15:00 -07:00
options_builder.cc Changes to support unity build: 2014-08-11 13:22:47 -04:00
options_test.cc
perf_context.cc
perf_context_imp.h Refactor PerfStepTimer to stop on destruct 2014-09-02 12:04:22 -07:00
posix_logger.h
random.h
rate_limiter.cc expose RateLimiter definition 2014-07-25 15:17:06 -07:00
rate_limiter.h expose RateLimiter definition 2014-07-25 15:17:06 -07:00
rate_limiter_test.cc expose RateLimiter definition 2014-07-25 15:17:06 -07:00
signal_test.cc
skiplistrep.cc
slice.cc
statistics.cc Fixing broken Mac build 2014-07-31 20:52:13 -07:00
statistics.h make statistics forward-able 2014-07-28 12:10:49 -07:00
status.cc
stl_wrappers.h
stop_watch.h Change StopWatch interface 2014-07-28 12:22:37 -07:00
string_util.cc
string_util.h
sync_point.cc
sync_point.h
testharness.cc
testharness.h
testutil.cc Adding a user comparator for comparing Uint64 slices. 2014-08-27 10:39:31 -07:00
testutil.h Adding a user comparator for comparing Uint64 slices. 2014-08-27 10:39:31 -07:00
thread_local.cc
thread_local.h
thread_local_test.cc
vectorrep.cc Remove assert in vector rep 2014-08-27 11:05:41 -07:00
xxhash.cc
xxhash.h