helics  2.8.1
ProfilerBuffer.hpp
1 /*
2 Copyright (c) 2017-2021,
3 Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
4 Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
5 SPDX-License-Identifier: BSD-3-Clause
6 */
7 #pragma once
8 
9 #include <string>
10 #include <utility>
11 #include <vector>
12 
13 namespace helics {
15  public:
16  ~ProfilerBuffer();
17  void addMessage(const std::string& data);
18  void addMessage(std::string&& data);
19  void writeFile();
20  void setOutputFile(std::string fileName) { mFileName = std::move(fileName); }
21 
22  private:
23  std::vector<std::string> mBuffers;
24  std::string mFileName;
25 };
26 } // namespace helics
data
@ data
print timing+data transmissions
Definition: loggingHelper.hpp:30
helics::ProfilerBuffer
Definition: ProfilerBuffer.hpp:14
helics
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14