io_tracer_parser.cc 562 B

1234567891011121314151617
  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. #ifndef GFLAGS
  7. #include <cstdio>
  8. int main() {
  9. fprintf(stderr, "Please install gflags to run rocksdb tools\n");
  10. return 1;
  11. }
  12. #else // GFLAGS
  13. #include "tools/io_tracer_parser_tool.h"
  14. int main(int argc, char** argv) {
  15. return ROCKSDB_NAMESPACE::io_tracer_parser(argc, argv);
  16. }
  17. #endif // GFLAGS