Skip to content

Commit d70d0a7

Browse files
bricerisingalgorandcce
authored andcommitted
Make heapwatch.py port configurable (algorand#3143)
This makes it possible to configure which port algod is running on when using heapWatch.py
1 parent 81f145c commit d70d0a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/heapwatch/heapWatch.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def _addnet(self, net):
218218
if net in self.netseen:
219219
return
220220
self.netseen.add(net)
221-
net = net + ':8580'
221+
net = net + ':' + self.args.port
222222
try:
223223
ad = algodDir(net, net=net, token=self.args.token, admin_token=self.args.admin_token)
224224
self.they.append(ad)
@@ -279,6 +279,7 @@ def main():
279279
ap.add_argument('--tf-roles', default='relay', help='comma separated list of terraform roles to follow')
280280
ap.add_argument('--tf-name-re', action='append', default=[], help='regexp to match terraform node names, may be repeated')
281281
ap.add_argument('--no-svg', dest='svg', default=True, action='store_false', help='do not automatically run `go tool pprof` to generate svg from collected data')
282+
ap.add_argument('-p', '--port', default='8580', help='algod port on each host in terraform-inventory')
282283
ap.add_argument('-o', '--out', default=None, help='directory to write to')
283284
ap.add_argument('--verbose', default=False, action='store_true')
284285
args = ap.parse_args()

0 commit comments

Comments
 (0)