Update libspinscale, add debug printing for pcloudStimProd
This commit is contained in:
+1
-1
Submodule libspinscale updated: a14d622eaf...ca2cccaa9c
@@ -1,6 +1,8 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <opts.h>
|
#include <opts.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <chrono>
|
||||||
|
#include <ctime>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
@@ -19,6 +21,10 @@
|
|||||||
#define SMO_DEBUG_PCLOUD_AMBIENCE_INTRIN 0
|
#define SMO_DEBUG_PCLOUD_AMBIENCE_INTRIN 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef SMO_PRINT_PCLOUD_STAGE_DURATIONS
|
||||||
|
#define SMO_PRINT_PCLOUD_STAGE_DURATIONS 1
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace smo {
|
namespace smo {
|
||||||
namespace stim_buff {
|
namespace stim_buff {
|
||||||
|
|
||||||
@@ -708,14 +714,29 @@ public:
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if SMO_PRINT_PCLOUD_STAGE_DURATIONS
|
||||||
// Print execution durations
|
const auto logNow = std::chrono::system_clock::now();
|
||||||
auto assemblyDuration = pcloudProducer.ioUringAssemblyEngine.getAssemblyDuration();
|
const std::time_t logTime =
|
||||||
auto compactDuration = pcloudProducer.openClCollatingAndMeshingEngine.getCompactKernelDuration();
|
std::chrono::system_clock::to_time_t(logNow);
|
||||||
auto collateDuration = pcloudProducer.openClCollatingAndMeshingEngine.getCollateKernelDuration();
|
const auto logSubsecMs =
|
||||||
std::cout << __func__ << ": Successfully compacted and collated frame: assemblyDuration=" << assemblyDuration.count()
|
std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||||
<< "ms, compactKernelDuration=" << compactDuration.count()
|
logNow.time_since_epoch()) % 1000;
|
||||||
<< "ms, collateKernelDuration=" << collateDuration.count() << "ms" << std::endl;
|
auto assemblyDuration =
|
||||||
|
pcloudProducer.ioUringAssemblyEngine.getAssemblyDuration();
|
||||||
|
auto compactDuration =
|
||||||
|
pcloudProducer.openClCollatingAndMeshingEngine
|
||||||
|
.getCompactKernelDuration();
|
||||||
|
auto collateDuration =
|
||||||
|
pcloudProducer.openClCollatingAndMeshingEngine
|
||||||
|
.getCollateKernelDuration();
|
||||||
|
std::cout << std::put_time(std::localtime(&logTime), "%T")
|
||||||
|
<< '.' << std::setfill('0') << std::setw(3)
|
||||||
|
<< logSubsecMs.count() << ' '
|
||||||
|
<< __func__ << ": stage durations: assembly="
|
||||||
|
<< assemblyDuration.count()
|
||||||
|
<< "ms, compactKernel=" << compactDuration.count()
|
||||||
|
<< "ms, collateKernel=" << collateDuration.count()
|
||||||
|
<< "ms" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user