xref: /aosp_15_r20/external/perfetto/src/tracing/core/virtual_destructors.cc (revision 6dbdd20afdafa5e3ca9b8809fa73465d530080dc)
1 /*
2  * Copyright (C) 2018 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "perfetto/ext/tracing/core/consumer.h"
18 #include "perfetto/ext/tracing/core/producer.h"
19 #include "perfetto/ext/tracing/core/shared_memory.h"
20 #include "perfetto/ext/tracing/core/shared_memory_arbiter.h"
21 #include "perfetto/ext/tracing/core/tracing_service.h"
22 
23 #include "protos/perfetto/common/tracing_service_state.gen.h"
24 
25 // This translation unit contains the definitions for the destructor of pure
26 // virtual interfaces for the current build target. The alternative would be
27 // introducing a one-liner .cc file for each pure virtual interface, which is
28 // overkill. This is for compliance with -Wweak-vtables.
29 
30 namespace perfetto {
31 
32 Consumer::~Consumer() = default;
33 Producer::~Producer() = default;
34 TracingService::~TracingService() = default;
35 ConsumerEndpoint::~ConsumerEndpoint() = default;
36 ProducerEndpoint::~ProducerEndpoint() = default;
37 RelayEndpoint::~RelayEndpoint() = default;
38 SharedMemory::~SharedMemory() = default;
39 SharedMemory::Factory::~Factory() = default;
40 SharedMemoryArbiter::~SharedMemoryArbiter() = default;
41 
42 // TODO(primiano): make pure virtual after various 3way patches.
OnSessionCloned(const OnSessionClonedArgs &)43 void Consumer::OnSessionCloned(const OnSessionClonedArgs&) {}
44 
45 }  // namespace perfetto
46