Skip navigation

We will update our Privacy Policy soon. Please see the preview.

✓ Solution: -resolution option

✓ Solution: -resolution option: Windows Power Tools: Optimizing Code
✓ Solution: -resolution option: Windows Power Tools: Optimizing Code

The command line option that lets use change the default sampling rate is "-resolution msec" and is used to change the logging frequency to 2 seconds. For example a command that lets us change the logging frequency to 2 seconds is "PowerLog3.0.exe -resolution 2000 -duration 30 -file log_file.csv". The reason why someone would want to have a longer sampling rate is because energy counters are read via Interrupts and sampling at 100ms will cost more power than sampling at 2 seconds. This is useful when profiling an application's update service or when in connected standby. When collecting for long duration i.e. 5 minutes you want decrease the freqency at which the energy counters are read so that the power overhead of the Power Gadget tool is not too impacting.

Resume Transcript Auto-Scroll
Skill Level Intermediate
1h 58m
Show More Show Less

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month