perf_level_imp.h 516 B

123456789101112131415161718
  1. // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
  2. // This source code is licensed under both the GPLv2 (found in the
  3. // COPYING file in the root directory) and Apache 2.0 License
  4. // (found in the LICENSE.Apache file in the root directory).
  5. //
  6. #pragma once
  7. #include "rocksdb/perf_level.h"
  8. #include "port/port.h"
  9. namespace ROCKSDB_NAMESPACE {
  10. #ifdef ROCKSDB_SUPPORT_THREAD_LOCAL
  11. extern __thread PerfLevel perf_level;
  12. #else
  13. extern PerfLevel perf_level;
  14. #endif
  15. } // namespace ROCKSDB_NAMESPACE