procs icon indicating copy to clipboard operation
procs copied to clipboard

Add use-full-config flag to enable full config without creating a file

Open twardakm opened this issue 3 years ago • 4 comments

Sometimes it is usefull to use procs with full config without creating separate config file (for example if we ask someone to collect some data for us).

It also modifies CONFIG_ALL static to the same values as are in config/large.toml.

twardakm avatar Jun 09 '21 18:06 twardakm

I started to use procs on embedded devices to gather some CPU / RSS data while debugging, but I struggled all the time with creating config file, just to have RSS value.

I think it would be beneficial to be able to run procs without this burden, and a flag is in my opinion a nice solution here.

twardakm avatar Jun 09 '21 18:06 twardakm

Thank you for your request. I think this is good idea, but there is some considerations.

  • The CONFIG_ALL is for test of all columns. You should add another static like CONFIG_LARGE.
  • It may be useful that some embedded configs can be selected through like --use-config default, --use-config large.

dalance avatar Jun 22 '21 01:06 dalance

Thanks for your suggestions, they make perfect sense. I will change my merge request soon.

twardakm avatar Jun 22 '21 20:06 twardakm

It may be useful that some embedded configs can be selected through like --use-config default, --use-config large.

I totally agree! I wanted to create an issue, that would be useful if we could use different configs for different situations.

pleshevskiy avatar Nov 02 '21 13:11 pleshevskiy

I added --use-config and built-in configs ( default and large ) which are the same as config/*.toml. So I'll close this PR.

dalance avatar Mar 03 '23 01:03 dalance