CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
profiler
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
11
namespace
carla
{
12
namespace
profiler {
13
14
class
LifetimeProfiled
{
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
27
~LifetimeProfiled
();
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
carla::profiler::LifetimeProfiled
Definition
LifetimeProfiled.h:14
carla::profiler::LifetimeProfiled::LifetimeProfiled
LifetimeProfiled()=default
Definition
LifetimeProfiled.cpp:67
carla
This file contains definitions of common data structures used in traffic manager.
Definition
Carla.cpp:133
制作者
1.10.0