Skip to content

Commit

Permalink
#1152: fix doc to mention CLI command necessary to enable disk_io_cou…
Browse files Browse the repository at this point in the history
…nters() on win
  • Loading branch information
giampaolo committed Jan 1, 2018
1 parent ad4acae commit a86c6f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ Disks
numbers will always be increasing or remain the same, but never decrease.
``disk_io_counters.cache_clear()`` can be used to invalidate the *nowrap*
cache.
On Windows it may be ncessary to issue ``diskperf -y`` command from cmd.exe
first in order to enable IO counters.

>>> import psutil
>>> psutil.disk_io_counters()
Expand Down

0 comments on commit a86c6f6

Please sign in to comment.