CARLA
 
载入中...
搜索中...
未找到
LifetimeProfiled.h
浏览该文件的文档.
1// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
9#include <string>
10
11namespace carla {
12namespace profiler {
13
15 protected:
16
17#ifndef LIBCARLA_ENABLE_LIFETIME_PROFILER
18
19 LifetimeProfiled() = default;
20
21#else
22
23 LifetimeProfiled(std::string display_name);
24
25 public:
26
28
29#endif // LIBCARLA_ENABLE_LIFETIME_PROFILER
30 };
31
32} // namespace profiler
33} // namespace carla
34
35#ifndef LIBCARLA_ENABLE_LIFETIME_PROFILER
36# define LIBCARLA_INITIALIZE_LIFETIME_PROFILER(display_name) ::carla::profiler::LifetimeProfiled()
37#else
38# define LIBCARLA_INITIALIZE_LIFETIME_PROFILER(display_name) ::carla::profiler::LifetimeProfiled(display_name)
39#endif // LIBCARLA_ENABLE_LIFETIME_PROFILER
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133