Skip to content

Commit 5ba7ba4

Browse files
authored
DPL: drop obsolete TRACY_PORT (#13334)
1 parent aeb4d24 commit 5ba7ba4

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

Framework/Core/include/Framework/DeviceInfo.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ struct DeviceInfo {
8080
boost::property_tree::ptree currentConfig;
8181
/// Current provenance for the configuration keys
8282
boost::property_tree::ptree currentProvenance;
83-
/// Port to use to connect to tracy profiler
84-
short tracyPort;
8583
/// Timestamp of the last signal received
8684
size_t lastSignal;
8785
/// An incremental number for the state of the device

Framework/Core/include/Framework/DriverInfo.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ struct DriverInfo {
153153
unsigned short resourcesMonitoringDumpInterval = 0;
154154
/// Port used by the websocket control. 0 means not initialised.
155155
unsigned short port = 0;
156-
/// Last port used for tracy
157-
short tracyPort = 8086;
158156
/// The minimum level after which the device will exit with 1
159157
LogParsingHelpers::LogLevel minFailureLevel = LogParsingHelpers::LogLevel::Fatal;
160158

Framework/Core/src/runDataProcessing.cxx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -691,8 +691,6 @@ void spawnDevice(uv_loop_t* loop,
691691
auto& spec = specs[ref.index];
692692
auto& execution = executions[ref.index];
693693

694-
driverInfo.tracyPort++;
695-
696694
for (auto& service : spec.services) {
697695
if (service.preFork != nullptr) {
698696
service.preFork(serviceRegistry, DeviceConfig{varmap});
@@ -738,8 +736,6 @@ void spawnDevice(uv_loop_t* loop,
738736
dup2(childFds[ref.index].childstdout[1], STDOUT_FILENO);
739737
dup2(childFds[ref.index].childstdout[1], STDERR_FILENO);
740738

741-
auto portS = std::to_string(driverInfo.tracyPort);
742-
setenv("TRACY_PORT", portS.c_str(), 1);
743739
for (auto& service : spec.services) {
744740
if (service.postForkChild != nullptr) {
745741
service.postForkChild(serviceRegistry);
@@ -792,7 +788,6 @@ void spawnDevice(uv_loop_t* loop,
792788
.readyToQuit = false,
793789
.inputChannelMetricsViewIndex = Metric2DViewIndex{"oldest_possible_timeslice", 0, 0, {}},
794790
.outputChannelMetricsViewIndex = Metric2DViewIndex{"oldest_possible_output", 0, 0, {}},
795-
.tracyPort = driverInfo.tracyPort,
796791
.lastSignal = uv_hrtime() - 10000000});
797792
// create the offset using uv_hrtime
798793
timespec now;

0 commit comments

Comments
 (0)