ActivityTraceInterface.h 584 B

12345678910111213141516171819202122232425262728
  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 <memory>
  10. #include <string>
  11. #include <vector>
  12. namespace libkineto {
  13. struct ITraceActivity;
  14. class ActivityTraceInterface {
  15. public:
  16. virtual ~ActivityTraceInterface() {}
  17. virtual const std::vector<const ITraceActivity*>* activities() {
  18. return nullptr;
  19. }
  20. virtual void save(const std::string& path) {}
  21. };
  22. } // namespace libkineto