ClientInterface.h 657 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) Meta Platforms, Inc. and affiliates.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree.
  7. */
  8. #pragma once
  9. #include <string>
  10. namespace libkineto {
  11. class ClientInterface {
  12. public:
  13. virtual ~ClientInterface() {}
  14. virtual void init() = 0;
  15. virtual void prepare(bool, bool, bool, bool, bool) = 0;
  16. virtual void start() = 0;
  17. virtual void stop() = 0;
  18. virtual void start_memory_profile() = 0;
  19. virtual void stop_memory_profile() = 0;
  20. virtual void export_memory_profile(const std::string&) = 0;
  21. };
  22. } // namespace libkineto