Skip to content

Commit

Permalink
Fix perf tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed Aug 16, 2024
1 parent 93b91ba commit 1399512
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
9 changes: 4 additions & 5 deletions src/plugins/JTest/JTestPlotter.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class JTestPlotter : public JEventProcessor {
JTestPlotter() {
SetPrefix("jtest:plotter");
SetTypeName(NAME_OF_THIS);
SetCallbackStyle(CallbackStyle::ExpertMode);
}

void Init() override {
Expand All @@ -34,14 +33,14 @@ class JTestPlotter : public JEventProcessor {
app->SetDefaultParameter("jtest:plotter_bytes_spread", m_write_spread, "Spread of bytes written during plotting");
}

void Process(const JEvent& event) override {
void Process(const std::shared_ptr<const JEvent>& event) override {

// Read the track data
auto td = event.GetSingle<JTestTrackData>();
auto td = event->GetSingle<JTestTrackData>();
read_memory(td->buffer);

// Read the extra data objects inserted by JTestTracker
event.Get<JTestTracker::JTestTrackAuxilliaryData>();
event->Get<JTestTracker::JTestTrackAuxilliaryData>();

// Everything that happens after here is in a critical section
std::lock_guard<std::mutex> lock(m_mutex);
Expand All @@ -52,7 +51,7 @@ class JTestPlotter : public JEventProcessor {
// Write the histogram data
auto hd = new JTestHistogramData;
write_memory(hd->buffer, m_write_bytes, m_write_spread);
event.Insert(hd);
event->Insert(hd);
}

};
Expand Down
1 change: 0 additions & 1 deletion src/programs/perf_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@


add_jana_test(jana-perf-tests)
set_tests_properties(jana-perf-tests PROPERTIES DISABLED TRUE)

if (USE_PODIO)
find_package(podio REQUIRED)
Expand Down
3 changes: 0 additions & 3 deletions src/programs/perf_tests/PerfTests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
#include <PodioStressTest.h>
#endif

#include <iostream>
#include <thread>



int main() {
Expand Down

0 comments on commit 1399512

Please sign in to comment.