1 //===-- timing.cpp ----------------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
15 Manager
->report(*this);
18 ScopedTimer::ScopedTimer(TimingManager
&Manager
, const char *Name
)
19 : Timer(Manager
.getOrCreateTimer(Name
)) {
23 ScopedTimer::ScopedTimer(TimingManager
&Manager
, const Timer
&Nest
,
25 : Timer(Manager
.nest(Nest
, Name
)) {