Skip to content

Commit 4a93ed6

Browse files
Revert "Add opt-in STTP startup diagnostics and benchmarks"
This reverts commit 8173067.
1 parent 8173067 commit 4a93ed6

12 files changed

Lines changed: 0 additions & 933 deletions

File tree

‎docs/MetadataScaling.md‎

Lines changed: 0 additions & 56 deletions
This file was deleted.

‎docs/StartupDiagnostics.md‎

Lines changed: 0 additions & 111 deletions
This file was deleted.

‎src/lib/transport/DataSubscriber.cpp‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
//******************************************************************************************************
2525

2626
#include "DataSubscriber.h"
27-
#include "StartupTrace.h"
2827
#include "Constants.h"
2928
#include "CompactMeasurement.h"
3029
#include "../Convert.h"
@@ -387,8 +386,6 @@ void DataSubscriber::HandleSucceeded(const uint8_t commandCode, uint8_t* data, c
387386
// Do not break on these messages because there is
388387
// still an associated message to be processed.
389388
m_subscribed = (commandCode == ServerCommand::Subscribe);
390-
if (m_subscribed)
391-
diagnostics::StartupEvent(this, "subscribe acknowledged");
392389
[[fallthrough]];
393390
case ServerCommand::UpdateProcessingInterval:
394391
case ServerCommand::RotateCipherKeys:
@@ -438,9 +435,7 @@ void DataSubscriber::HandleFailed(const uint8_t commandCode, uint8_t* data, cons
438435
// Handles metadata refresh messages from the server.
439436
void DataSubscriber::HandleMetadataRefresh(const uint8_t* data, const uint32_t offset, const uint32_t length)
440437
{
441-
diagnostics::StartupEvent(this, "metadata response received (bytes)", 0.0, length);
442438
Dispatch(&MetadataDispatcher, data, offset, length);
443-
diagnostics::StartupEvent(this, "metadata response queued");
444439
}
445440

446441
// Handles data start time reported by the server at the beginning of a subscription.
@@ -461,7 +456,6 @@ void DataSubscriber::HandleUpdateSignalIndexCache(const uint8_t* data, uint32_t
461456
if (data == nullptr)
462457
return;
463458

464-
diagnostics::StartupPhase startup(this, "signal cache processing scope");
465459
vector<uint8_t> uncompressedBuffer;
466460
int32_t cacheIndex = 0;
467461

@@ -492,10 +486,8 @@ void DataSubscriber::HandleUpdateSignalIndexCache(const uint8_t* data, uint32_t
492486
WriteBytes(uncompressedBuffer, data, offset, length);
493487
}
494488

495-
startup.Mark("signal cache decompress/copy complete (bytes)", uncompressedBuffer.size());
496489
SignalIndexCachePtr signalIndexCache = NewSharedPtr<SignalIndexCache>();
497490
signalIndexCache->Decode(uncompressedBuffer, m_subscriberID);
498-
startup.Mark("signal cache decode complete");
499491

500492
m_signalIndexCacheMutex.lock();
501493
m_signalIndexCache[cacheIndex].swap(signalIndexCache);
@@ -556,9 +548,6 @@ void DataSubscriber::HandleDataPacket(uint8_t* data, uint32_t offset, const uint
556548

557549
// Read measurement count and gather statistics
558550
const uint32_t count = EndianConverter::ToBigEndian<uint32_t>(data, offset);
559-
const bool firstPacket = m_totalMeasurementsReceived == 0 && count > 0;
560-
if (firstPacket)
561-
diagnostics::StartupEvent(this, "first nonempty data packet received", 0.0, count);
562551
m_totalMeasurementsReceived += count;
563552
offset += 4; //-V112
564553

@@ -580,8 +569,6 @@ void DataSubscriber::HandleDataPacket(uint8_t* data, uint32_t offset, const uint
580569
else
581570
ParseCompactMeasurements(signalIndexCache, data, offset, length, includeTime, info.UseMillisecondResolution, frameLevelTimestamp, measurements);
582571

583-
if (firstPacket)
584-
diagnostics::StartupEvent(this, "first packet decoded; invoking measurement callback", 0.0, measurements.size());
585572
newMeasurementsCallback(this, measurements);
586573
}
587574
}
@@ -1427,7 +1414,6 @@ void DataSubscriber::Subscribe(const SubscriptionInfo& info)
14271414
// Subscribe to publisher in order to start receiving data.
14281415
void DataSubscriber::Subscribe()
14291416
{
1430-
diagnostics::StartupPhase startup(this, "subscribe send scope");
14311417
stringstream connectionStream;
14321418
vector<uint8_t> buffer;
14331419
uint32_t bigEndianConnectionStringSize;
@@ -1502,9 +1488,7 @@ void DataSubscriber::Subscribe()
15021488
for (size_t i = 0; i < connectionStringSize; ++i)
15031489
buffer[5 + i] = connectionStringPtr[i];
15041490

1505-
startup.Mark("subscribe command built (bytes)", bufferSize);
15061491
SendServerCommand(ServerCommand::Subscribe, buffer.data(), 0, bufferSize);
1507-
startup.Mark("subscribe send returned");
15081492

15091493
// Reset TSSC decompresser on successful (re)subscription
15101494
m_tsscLastOOSReportMutex.lock();

0 commit comments

Comments
 (0)