• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2019 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/tracing/internal/tracing_tls.h"
18 #include "perfetto/tracing/tracing.h"
19 #include "perfetto/tracing/tracing_backend.h"
20 
21 // This translation unit contains the definitions for the destructor of pure
22 // virtual interfaces for the src/public:public target. The alternative would be
23 // introducing a one-liner .cc file for each pure virtual interface, which is
24 // overkill. This is for compliance with -Wweak-vtables.
25 
26 namespace perfetto {
27 namespace internal {
28 
~TracingTLS()29 TracingTLS::~TracingTLS() {
30   // Avoid entering trace points while the thread is being torn down.
31   is_in_trace_point = true;
32 }
33 
34 }  // namespace internal
35 
36 TracingBackend::~TracingBackend() = default;
37 TracingSession::~TracingSession() = default;
38 
39 }  // namespace perfetto
40