Skip to content

Commit 31b9d0b

Browse files
committed
Benchmark
Signed-off-by: Victor Chang <vicchang@nvidia.com>
1 parent 788adb7 commit 31b9d0b

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@
930930
},
931931
{
932932
"name": "HOLOSCAN_LOG_LEVEL",
933-
"value": "INFO"
933+
"value": "DEBUG"
934934
}
935935
],
936936
"stopAtEntry": false,
@@ -963,7 +963,7 @@
963963
},
964964
{
965965
"name": "HOLOSCAN_LOG_LEVEL",
966-
"value": "INFO"
966+
"value": "DEBUG"
967967
}
968968
],
969969
"stopAtEntry": false,

applications/distributed/grpc/grpc_endoscopy_tool_tracking/cpp/endoscopy_tool_tracking.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ replayer:
2929
basename: "surgical_video"
3030
frame_rate: 0 # as specified in timestamps
3131
repeat: false # default: false
32-
realtime: true # default: true
32+
realtime: false # default: true
3333
count: 0 # default: 0 (no frame count restriction)
3434

3535
format_converter:

operators/grpc_operators/common/asynchronous_condition_queue.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,14 @@ class AsynchronousConditionQueue : public Resource {
4949
if (data_available_condition_->event_state() == AsynchronousEventState::EVENT_WAITING) {
5050
data_available_condition_->event_state(AsynchronousEventState::EVENT_DONE);
5151
}
52+
HOLOSCAN_LOG_DEBUG("Items queued+: {}", queue_.size());
5253
}
5354

5455
DataT pop() {
5556
if (empty()) { return nullptr; }
5657
auto item = queue_.front();
5758
queue_.pop();
59+
HOLOSCAN_LOG_DEBUG("Items queued-: {}", queue_.size());
5860
return item;
5961
}
6062

operators/grpc_operators/common/conditional_variable_queue.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,15 @@ class ConditionVariableQueue : public Resource {
4747
std::lock_guard<std::mutex> lock(response_available_mutex_);
4848
queue_.push(value);
4949
data_available_condition_.notify_one();
50+
HOLOSCAN_LOG_DEBUG("Items queued+: {}", queue_.size());
5051
}
5152

5253
DataT pop() {
5354
std::unique_lock<std::mutex> lock(response_available_mutex_);
5455
data_available_condition_.wait(lock, [this]() { return !queue_.empty(); });
5556
auto item = queue_.front();
5657
queue_.pop();
58+
HOLOSCAN_LOG_DEBUG("Items queued-: {}", queue_.size());
5759
return item;
5860
}
5961

0 commit comments

Comments
 (0)