#include <profile.h>
Signals | |
| void | dataAdded (int profile_key) |
| void | nodesAdded (int profile_key) |
| void | profileModified (int profile_key) |
Public Member Functions | |
| void | addData (const NewProfileDataVector &data) |
| const bool | isValid () const |
| const QString & | name () const |
| const ProfileNode & | node (int node_key) const |
| const std::vector< int > & | nodeKeys () const |
| Profile () | |
| const int | profileKey () const |
| const int | rootKey () const |
| const ProfileNode & | rootNode () const |
| void | setName (const QString &name) |
| ~Profile () | |
Private Member Functions | |
| void | addDataToAllNodes (const bool back, const size_t count) |
| void | expandTimeline (const uint64_t sec) |
| size_t | indexFromSec (const uint64_t secs) const |
| void | initialize (int profile_key, const QString &name) |
| void | rebuildFlatIndex () |
| void | rebuildIndices () |
| void | rebuildTreeIndex () |
| uint64_t | secFromIndex (const uint64_t index) const |
| void | storeItemData (std::set< uint64_t > &modified_times, const int node_key, const NewProfileData &item) |
| bool | touchNode (const QString &path) |
| void | updateDerivedData (size_t index) |
| void | updateDerivedDataInternal (ProfileNode &node, size_t index) |
Private Attributes | |
| std::vector< int > | flat_index_ |
| uint64_t | max_time_s_ |
| uint64_t | min_time_s_ |
| QString | name_ |
| std::map< QString, int > | node_key_from_path_ |
| std::unordered_map< int, ProfileNode > | nodes_ |
| int | profile_key_ |
Friends | |
| class | ProfileDatabase |
Definition at line 42 of file profile.cpp.
Definition at line 59 of file profile.cpp.
| void swri_profiler_tools::Profile::addData | ( | const NewProfileDataVector & | data | ) |
Definition at line 75 of file profile.cpp.
| void swri_profiler_tools::Profile::addDataToAllNodes | ( | const bool | back, |
| const size_t | count | ||
| ) | [private] |
Definition at line 156 of file profile.cpp.
| void swri_profiler_tools::Profile::dataAdded | ( | int | profile_key | ) | [signal] |
| void swri_profiler_tools::Profile::expandTimeline | ( | const uint64_t | sec | ) | [private] |
Definition at line 133 of file profile.cpp.
| size_t swri_profiler_tools::Profile::indexFromSec | ( | const uint64_t | secs | ) | const [inline, private] |
| void swri_profiler_tools::Profile::initialize | ( | int | profile_key, |
| const QString & | name | ||
| ) | [private] |
Definition at line 63 of file profile.cpp.
| const bool swri_profiler_tools::Profile::isValid | ( | ) | const [inline] |
| const QString& swri_profiler_tools::Profile::name | ( | ) | const [inline] |
| const ProfileNode & swri_profiler_tools::Profile::node | ( | int | node_key | ) | const |
Definition at line 457 of file profile.cpp.
| const std::vector< int > & swri_profiler_tools::Profile::nodeKeys | ( | ) | const |
Definition at line 472 of file profile.cpp.
| void swri_profiler_tools::Profile::nodesAdded | ( | int | profile_key | ) | [signal] |
| const int swri_profiler_tools::Profile::profileKey | ( | ) | const [inline] |
| void swri_profiler_tools::Profile::profileModified | ( | int | profile_key | ) | [signal] |
| void swri_profiler_tools::Profile::rebuildFlatIndex | ( | ) | [private] |
Definition at line 283 of file profile.cpp.
| void swri_profiler_tools::Profile::rebuildIndices | ( | ) | [private] |
Definition at line 277 of file profile.cpp.
| void swri_profiler_tools::Profile::rebuildTreeIndex | ( | ) | [private] |
Definition at line 338 of file profile.cpp.
| const int swri_profiler_tools::Profile::rootKey | ( | ) | const [inline] |
| const ProfileNode & swri_profiler_tools::Profile::rootNode | ( | ) | const |
Definition at line 467 of file profile.cpp.
| uint64_t swri_profiler_tools::Profile::secFromIndex | ( | const uint64_t | index | ) | const [inline, private] |
| void swri_profiler_tools::Profile::setName | ( | const QString & | name | ) |
Definition at line 451 of file profile.cpp.
| void swri_profiler_tools::Profile::storeItemData | ( | std::set< uint64_t > & | modified_times, |
| const int | node_key, | ||
| const NewProfileData & | item | ||
| ) | [private] |
Definition at line 250 of file profile.cpp.
| bool swri_profiler_tools::Profile::touchNode | ( | const QString & | path | ) | [private] |
Definition at line 178 of file profile.cpp.
| void swri_profiler_tools::Profile::updateDerivedData | ( | size_t | index | ) | [private] |
Definition at line 370 of file profile.cpp.
| void swri_profiler_tools::Profile::updateDerivedDataInternal | ( | ProfileNode & | node, |
| size_t | index | ||
| ) | [private] |
Definition at line 380 of file profile.cpp.
friend class ProfileDatabase [friend] |
std::vector<int> swri_profiler_tools::Profile::flat_index_ [private] |
uint64_t swri_profiler_tools::Profile::max_time_s_ [private] |
uint64_t swri_profiler_tools::Profile::min_time_s_ [private] |
QString swri_profiler_tools::Profile::name_ [private] |
std::map<QString, int> swri_profiler_tools::Profile::node_key_from_path_ [private] |
std::unordered_map<int, ProfileNode> swri_profiler_tools::Profile::nodes_ [private] |
int swri_profiler_tools::Profile::profile_key_ [private] |