new_profile_data.h
Go to the documentation of this file.
1 // *****************************************************************************
2 //
3 // Copyright (c) 2015, Southwest Research Institute® (SwRI®)
4 // All rights reserved.
5 //
6 // Redistribution and use in source and binary forms, with or without
7 // modification, are permitted provided that the following conditions are met:
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
13 // * Neither the name of Southwest Research Institute® (SwRI®) nor the
14 // names of its contributors may be used to endorse or promote products
15 // derived from this software without specific prior written permission.
16 //
17 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 // ARE DISCLAIMED. IN NO EVENT SHALL Southwest Research Institute® BE LIABLE
21 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
27 // DAMAGE.
28 //
29 // *****************************************************************************
30 
31 #ifndef SWRI_PROFILER_TOOLS_NEW_PROFILE_DATA_H_
32 #define SWRI_PROFILER_TOOLS_NEW_PROFILE_DATA_H_
33 
34 #include <string>
35 #include <vector>
36 
37 namespace swri_profiler_tools
38 {
39 // This structure represents a single chunk of profile information and
40 // is used to pass new data to the profile database. I don't like the
41 // name but I more don't like not making progress from sitting around
42 // thinking of a better name.
44 {
45  QString label;
46  uint64_t wall_stamp_sec;
47  uint64_t ros_stamp_ns;
52 }; // struct NewProfileData
53 
54 typedef std::vector<NewProfileData> NewProfileDataVector;
55 } // namespace swri_profiler_tools
56 #endif // SWRI_PROFILER_TOOLS_NEW_PROFILE_DATA_H_
swri_profiler_tools::NewProfileData::wall_stamp_sec
uint64_t wall_stamp_sec
Definition: new_profile_data.h:46
swri_profiler_tools::NewProfileData::cumulative_inclusive_duration_ns
uint64_t cumulative_inclusive_duration_ns
Definition: new_profile_data.h:49
swri_profiler_tools::NewProfileData::label
QString label
Definition: new_profile_data.h:45
swri_profiler_tools::NewProfileData::incremental_max_duration_ns
uint64_t incremental_max_duration_ns
Definition: new_profile_data.h:51
swri_profiler_tools::NewProfileData
Definition: new_profile_data.h:43
swri_profiler_tools::NewProfileDataVector
std::vector< NewProfileData > NewProfileDataVector
Definition: new_profile_data.h:54
swri_profiler_tools::NewProfileData::incremental_inclusive_duration_ns
uint64_t incremental_inclusive_duration_ns
Definition: new_profile_data.h:50
swri_profiler_tools
Definition: database_key.h:34
swri_profiler_tools::NewProfileData::cumulative_call_count
uint64_t cumulative_call_count
Definition: new_profile_data.h:48
swri_profiler_tools::NewProfileData::ros_stamp_ns
uint64_t ros_stamp_ns
Definition: new_profile_data.h:47


swri_profiler_tools
Author(s):
autogenerated on Wed Mar 2 2022 01:06:28