Skip to content

Commit 4bc5085

Browse files
committed
rsz: add "memory" debugPrint for RSS size by iteration
Signed-off-by: Matt Liberty <[email protected]>
1 parent a2357ee commit 4bc5085

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/rsz/src/RepairDesign.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "sta/Search.hh"
3232
#include "sta/SearchPred.hh"
3333
#include "sta/Units.hh"
34+
#include "utl/mem_stats.h"
3435
#include "utl/scope.h"
3536

3637
namespace rsz {
@@ -2652,6 +2653,8 @@ void RepairDesign::printProgress(int iteration,
26522653
inserted_buffer_count_,
26532654
repaired_net_count,
26542655
nets_left);
2656+
2657+
debugPrint(logger_, RSZ, "memory", 1, "RSS = {}", utl::getCurrentRSS());
26552658
}
26562659

26572660
if (end) {

src/rsz/src/RepairHold.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "sta/TimingArc.hh"
2626
#include "sta/Units.hh"
2727
#include "utl/Logger.h"
28+
#include "utl/mem_stats.h"
2829

2930
namespace rsz {
3031

@@ -889,6 +890,8 @@ void RepairHold::printProgress(int iteration, bool force, bool end) const
889890
delayAsString(wns, sta_, 3),
890891
delayAsString(tns, sta_, 3),
891892
worst_vertex->name(network_));
893+
894+
debugPrint(logger_, RSZ, "memory", 1, "RSS = {}", utl::getCurrentRSS());
892895
}
893896

894897
if (end) {

src/rsz/src/RepairSetup.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include "sta/Units.hh"
3939
#include "sta/VerilogWriter.hh"
4040
#include "utl/Logger.h"
41+
#include "utl/mem_stats.h"
4142

4243
namespace rsz {
4344

@@ -764,6 +765,8 @@ void RepairSetup::printProgress(const int iteration,
764765
delayAsString(tns, sta_, 1),
765766
max(0, num_viols),
766767
worst_vertex != nullptr ? worst_vertex->name(network_) : "");
768+
769+
debugPrint(logger_, RSZ, "memory", 1, "RSS = {}", utl::getCurrentRSS());
767770
}
768771

769772
if (end) {

0 commit comments

Comments
 (0)