Signals | Public Member Functions | Private Member Functions | Private Attributes | Friends
swri_profiler_tools::Profile Class Reference

#include <profile.h>

List of all members.

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 ProfileNodenode (int node_key) const
const std::vector< int > & nodeKeys () const
 Profile ()
const int profileKey () const
const int rootKey () const
const ProfileNoderootNode () 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

Detailed Description

Definition at line 141 of file profile.h.


Constructor & Destructor Documentation

Definition at line 42 of file profile.cpp.

Definition at line 59 of file profile.cpp.


Member Function Documentation

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]

Definition at line 193 of file profile.h.

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]

Definition at line 208 of file profile.h.

const QString& swri_profiler_tools::Profile::name ( ) const [inline]

Definition at line 211 of file profile.h.

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]

Definition at line 209 of file profile.h.

void swri_profiler_tools::Profile::profileModified ( int  profile_key) [signal]

Definition at line 283 of file profile.cpp.

Definition at line 277 of file profile.cpp.

Definition at line 338 of file profile.cpp.

const int swri_profiler_tools::Profile::rootKey ( ) const [inline]

Definition at line 216 of file profile.h.

Definition at line 467 of file profile.cpp.

uint64_t swri_profiler_tools::Profile::secFromIndex ( const uint64_t  index) const [inline, private]

Definition at line 194 of file profile.h.

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.


Friends And Related Function Documentation

friend class ProfileDatabase [friend]

Definition at line 181 of file profile.h.


Member Data Documentation

std::vector<int> swri_profiler_tools::Profile::flat_index_ [private]

Definition at line 175 of file profile.h.

Definition at line 159 of file profile.h.

Definition at line 158 of file profile.h.

Definition at line 152 of file profile.h.

std::map<QString, int> swri_profiler_tools::Profile::node_key_from_path_ [private]

Definition at line 169 of file profile.h.

std::unordered_map<int, ProfileNode> swri_profiler_tools::Profile::nodes_ [private]

Definition at line 170 of file profile.h.

Definition at line 143 of file profile.h.


The documentation for this class was generated from the following files:


swri_profiler_tools
Author(s):
autogenerated on Sat Apr 27 2019 03:08:49