chore: strip temporary PerfLog instrumentation

Профилирование завершено (кадр спектра 8.3мс -> 1.7мс, UI 45% -> 26% ядра):
удаляем PerfLog.pas, doc/PERF_PROFILING.md и все // PERF-замеры из
WDSPEngine/HPSDRNetwork/PlutoBackend/AudioOutput/SpectrumView(+GL)/
WaterfallViewOpengl/WidebandView/MainForm. Сами оптимизации (full-raw
рендерер, дворд-блендеры, порог бэндплана) остаются.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-03 00:36:03 +03:00
co-authored by Claude Fable 5
parent 0adaff2d21
commit 01d78d148f
12 changed files with 10 additions and 521 deletions
+1 -8
View File
@@ -19,8 +19,7 @@ uses
{$ELSE}
Sockets, BaseUnix,
{$ENDIF}
HPSDRProtocol, SyncObjs, Settings, RadioBackend,
PerfLog; // ВРЕМЕННО (perf/cpu-profiling): зонные CPU-таймеры
HPSDRProtocol, SyncObjs, Settings, RadioBackend;
const
DUC_TX_QUEUE_SIZE = 256; // power of two, bounded latency on TX underrun/overrun
@@ -1094,14 +1093,11 @@ procedure THPSDRNetwork.HandleDDCIQ(const Buf: array of Byte; Len: Integer;
DDCIdx: Integer);
var
Pkt: TDDCIQPacket;
T0: Int64; // PERF
begin
if not Assigned(FOnDDCIQ) then Exit;
T0 := PerfNow; // PERF
FillChar(Pkt, SizeOf(Pkt), 0);
Move(Buf[0], Pkt, Min(Len, SizeOf(Pkt)));
FOnDDCIQ(DDCIdx, Pkt); // прямой вызов из потока — UI не трогает
PerfAdd(pzNetDDCIQ, T0); // PERF: копия пакета + постановка в DSP-очередь
end;
procedure THPSDRNetwork.HandleMicData(const Buf: array of Byte; Len: Integer);
@@ -1118,11 +1114,9 @@ procedure THPSDRNetwork.HandleWidebandData(const Buf: array of Byte; Len: Intege
var
Seq: LongWord;
I, SamplesInPacket, TargetCount, S: Integer;
T0: Int64; // PERF
begin
if (not FWidebandEnabled) or (ADCIdx <> FWidebandADC) or
(FWBSampleBits <> 16) or (Len < 6) then Exit;
T0 := PerfNow; // PERF
SamplesInPacket := (Len - 4) div 2;
if SamplesInPacket <= 0 then Exit;
@@ -1163,7 +1157,6 @@ begin
FWBFrameCount := 0;
FWBSeqValid := False;
end;
PerfAdd(pzNetWideband, T0); // PERF: сборка wideband-кадра + колбэк
end;
// ---------------------------------------------------------------------------