Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ITimeMetricCollector.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* ITimeMetricCollector.h (C) 2000-2020 */
9/* */
10/* Interface gérant les statistiques sur les temps d'exécution. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCCORE_TRACE_ITIMEMETRICCOLLECTOR_H
13#define ARCCORE_TRACE_ITIMEMETRICCOLLECTOR_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arccore/trace/TraceGlobal.h"
18#include "arccore/base/String.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22/*
23 * API en cours de définition. Ne pas utiliser en dehors de Arccore/Arcane.
24 */
25
26namespace Arccore
27{
28
29/*---------------------------------------------------------------------------*/
30/*---------------------------------------------------------------------------*/
34class ARCCORE_TRACE_EXPORT ITimeMetricCollector
35{
36 public:
37
38 public:
39
40 // Libère les ressources.
41 virtual ~ITimeMetricCollector() = default;
42
43 public:
44
45 virtual TimeMetricAction getAction(const TimeMetricActionBuildInfo& x) =0;
46 virtual TimeMetricId beginAction(const TimeMetricAction& handle) =0;
47 virtual void endAction(const TimeMetricId& metric_id) =0;
48};
49
50/*---------------------------------------------------------------------------*/
51/*---------------------------------------------------------------------------*/
52
53} // End namespace Arccore
54
55/*---------------------------------------------------------------------------*/
56/*---------------------------------------------------------------------------*/
57
58#endif
Interface gérant les statistiques sur l'exécution.
Espace de nom de Arccore.
Definition ArcaneTypes.h:24