Skip to content

Conversation

@Drieger
Copy link
Contributor

@Drieger Drieger commented Oct 1, 2018

Added a new option to findjsinstances that allow user to limit the number of entries shown. Command would be as follow

v8 findjsinstances -n <num> <search>

First num entries will be displayed, to see the following num instances user would just repeat the same num and search, or just press [ENTER] as it repeats the last command. Once we reached the last "page" it begins to show from the first entry again.

I created a simple example to show usage:
https://asciinema.org/a/X04QMdeyWlDY1DBWeCDBNVUry

mmarchini

This comment was marked as off-topic.

@Drieger Drieger force-pushed the limit_result_of_findjsinstances branch 2 times, most recently from 3debe6a to 632afda Compare October 5, 2018 11:33
As the number of instances might grow large in some applications,
give the user an option to limit the number of entries displayed
on command output. Next entries will be displayes when the same
command is used or just by pressing [ENTER], this will repeat
last command.

Refs: nodejs#230
@Drieger Drieger force-pushed the limit_result_of_findjsinstances branch from 632afda to 4f84969 Compare October 5, 2018 12:08
Copy link
Contributor

@mmarchini mmarchini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few nits left (include , extra spaces, etc.), but I'll fix those while landing. Thanks!

mmarchini pushed a commit that referenced this pull request Oct 5, 2018
As the number of instances might grow large in some applications,
give the user an option to limit the number of entries displayed
on command output. Next entries will be displayes when the same
command is used or just by pressing [ENTER], this will repeat
last command.

Refs: #230

PR-URL: #235
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
@mmarchini
Copy link
Contributor

Landed in 2fc1571. Thank you!

@mmarchini mmarchini closed this Oct 5, 2018
hyj1991 pushed a commit to aliyun-node/llnode that referenced this pull request Oct 11, 2018
As the number of instances might grow large in some applications,
give the user an option to limit the number of entries displayed
on command output. Next entries will be displayes when the same
command is used or just by pressing [ENTER], this will repeat
last command.

Refs: nodejs#230

PR-URL: nodejs#235
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants