@@ -1011,6 +1011,7 @@ void TPlan::LoadStage(std::shared_ptr<TStage> stage, const NJson::TJsonValue& no
1011
1011
ythrow yexception () << " Plan stage already has Ingress [" << stage->IngressName << " ]" ;
1012
1012
}
1013
1013
stage->IngressName = subNodeType;
1014
+ stage->BuiltInIngress = true ;
1014
1015
1015
1016
const NJson::TJsonValue* ingressRowsNode = nullptr ;
1016
1017
if (stage->StatsNode ) {
@@ -1185,7 +1186,7 @@ void TPlan::MarkStageIndent(ui32 indent, ui32& offsetY, std::shared_ptr<TStage>
1185
1186
1186
1187
stage->OffsetY = offsetY;
1187
1188
ui32 height = std::max<ui32>(
1188
- (stage->Connections .size () + 3 ) * (INTERNAL_HEIGHT + INTERNAL_GAP_Y) + INTERNAL_GAP_Y,
1189
+ (3 /* Output, MEM, CPU */ + stage->Connections .size () + stage-> BuiltInIngress ) * (INTERNAL_HEIGHT + INTERNAL_GAP_Y) + INTERNAL_GAP_Y,
1189
1190
stage->Operators .size () * (INTERNAL_TEXT_HEIGHT + INTERNAL_GAP_Y) * 2 - INTERNAL_GAP_Y + (INTERNAL_HEIGHT - INTERNAL_TEXT_HEIGHT));
1190
1191
1191
1192
stage->Height = height;
@@ -1591,7 +1592,7 @@ void TPlan::PrintSvg(ui64 maxTime, ui32& offsetY, TStringBuilder& background, TS
1591
1592
if (d) {
1592
1593
title << " " << FormatBytes (s->OutputBytes ->Details .Sum * 1000 / d) << " /s" ;
1593
1594
if (s->OutputRows ) {
1594
- title << " , Rows " << FormatIntegerValue (s->OutputRows ->Details .Sum * 1000 / d) << " /s" ;
1595
+ title << " , Rows " << FormatInteger (s->OutputRows ->Details .Sum * 1000 / d) << " /s" ;
1595
1596
}
1596
1597
}
1597
1598
PrintTimeline (background, canvas, title, s->OutputBytes ->FirstMessage , s->OutputBytes ->LastMessage , px, y0 , pw, INTERNAL_HEIGHT, Config.Palette .OutputMedium );
@@ -1796,7 +1797,7 @@ void TPlan::PrintSvg(ui64 maxTime, ui32& offsetY, TStringBuilder& background, TS
1796
1797
if (d) {
1797
1798
title << " " << FormatBytes (c->CteOutputBytes ->Details .Sum * 1000 / d) << " /s" ;
1798
1799
if (c->CteOutputRows ) {
1799
- title << " , Rows " << FormatIntegerValue (c->CteOutputRows ->Details .Sum * 1000 / d) << " /s" ;
1800
+ title << " , Rows " << FormatInteger (c->CteOutputRows ->Details .Sum * 1000 / d) << " /s" ;
1800
1801
}
1801
1802
}
1802
1803
PrintTimeline (background, canvas, title, c->CteOutputBytes ->FirstMessage , c->CteOutputBytes ->LastMessage , px, y + INTERNAL_GAP_Y, pw, INTERNAL_HEIGHT, Config.Palette .OutputMedium );
@@ -1870,7 +1871,7 @@ void TPlan::PrintSvg(ui64 maxTime, ui32& offsetY, TStringBuilder& background, TS
1870
1871
TStringBuilder tooltip;
1871
1872
auto textSum = FormatTooltip (tooltip, " Input" , c->InputBytes .get (), FormatBytes);
1872
1873
if (c->InputRows ) {
1873
- FormatTooltip (tooltip, " , Rows" , c->InputBytes .get (), FormatInteger);
1874
+ FormatTooltip (tooltip, " , Rows" , c->InputRows .get (), FormatInteger);
1874
1875
if (c->InputRows ->Details .Sum ) {
1875
1876
tooltip << " , Width " << FormatBytes (c->InputBytes ->Details .Sum / c->InputRows ->Details .Sum );
1876
1877
}
@@ -1883,7 +1884,7 @@ void TPlan::PrintSvg(ui64 maxTime, ui32& offsetY, TStringBuilder& background, TS
1883
1884
if (d) {
1884
1885
title << " " << FormatBytes (c->InputBytes ->Details .Sum * 1000 / d) << " /s" ;
1885
1886
if (c->InputRows ) {
1886
- title << " , Rows " << FormatIntegerValue (c->InputRows ->Details .Sum * 1000 / d) << " /s" ;
1887
+ title << " , Rows " << FormatInteger (c->InputRows ->Details .Sum * 1000 / d) << " /s" ;
1887
1888
}
1888
1889
}
1889
1890
PrintTimeline (background, canvas, title, c->InputBytes ->FirstMessage , c->InputBytes ->LastMessage , px, y0 , pw, INTERNAL_HEIGHT, Config.Palette .InputMedium );
@@ -1917,7 +1918,7 @@ void TPlan::PrintSvg(ui64 maxTime, ui32& offsetY, TStringBuilder& background, TS
1917
1918
if (d) {
1918
1919
title << " " << FormatBytes (s->IngressBytes ->Details .Sum * 1000 / d) << " /s" ;
1919
1920
if (s->IngressRows ) {
1920
- title << " , Rows " << FormatIntegerValue (s->IngressRows ->Details .Sum / d) << " /s" ;
1921
+ title << " , Rows " << FormatInteger (s->IngressRows ->Details .Sum / d) << " /s" ;
1921
1922
}
1922
1923
}
1923
1924
PrintTimeline (background, canvas, title, s->IngressBytes ->FirstMessage , s->IngressBytes ->LastMessage , px, y0 , pw, INTERNAL_HEIGHT, Config.Palette .IngressMedium );
0 commit comments