Commit 38823212 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Formatting

parent c7f510f8
......@@ -304,18 +304,18 @@ namespace ITA
/// \param mThreadNames map, containing the names of the threads.
/// \return a JSON Node with the data of the given eventCount pair.
///
static JSONNode profileEventCountToJSON ( const std::pair<ProfilerKey, ProfileEventCount>& eventCountPair,
static JSONNode profileEventCountToJSON ( const std::pair<ProfilerKey, ProfileEventCount>& eventCountPair,
const std::unordered_map<std::thread::id, std::string>& mThreadNames )
{
std::string sThreadName;
const auto threadNameIterator = mThreadNames.find ( eventCountPair.first.iThreadId );
if ( threadNameIterator != mThreadNames.end ( ) )
sThreadName = threadNameIterator->second;
JSONNode jnRoot;
if ( !sThreadName.empty() )
if ( !sThreadName.empty ( ) )
jnRoot.set_name ( eventCountPair.first.sFunction + "::" + eventCountPair.first.sName + "-" + sThreadName );
else
jnRoot.set_name ( eventCountPair.first.sFunction + "::" + eventCountPair.first.sName + "-" + std::to_string ( eventCountPair.first.iThreadId.hash ( ) ) );
......@@ -327,7 +327,7 @@ namespace ITA
if ( !sThreadName.empty ( ) )
jnRoot.push_back ( JSONNode ( "Thread Name", sThreadName ) );
jnRoot.push_back ( JSONNode ( "Count", eventCountPair.second.vTimeStamps.size ( ) ) );
std::vector<double> vdTimeStamps ( eventCountPair.second.vTimeStamps.size ( ) );
......@@ -370,7 +370,7 @@ namespace ITA
if ( threadNameIterator != mThreadNames.end ( ) )
sThreadName = threadNameIterator->second;
JSONNode jnRoot;
if ( !sThreadName.empty ( ) )
jnRoot.set_name ( sectionPair.first.sFunction + "::" + sectionPair.first.sName + "-" + sThreadName );
......
......@@ -122,11 +122,11 @@ namespace ITA
handler->postResultReceived ( pResult->clone ( ) );
}
bool CScheduler::isBusy() const
bool CScheduler::isBusy ( ) const
{
auto busy = false;
for (const auto& worker : m_vWorker)
for ( const auto& worker : m_vWorker )
{
busy |= worker->isBusy ( );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment