gamenet / redis-memory-analyzer

Redis memory profiler to find the RAM bottlenecks throw scaning key space in real time and aggregate RAM usage statistic by patterns.
MIT License
772 stars 80 forks source link

AttributeError: module 'time' has no attribute 'clock' #50

Closed itskingori closed 4 years ago

itskingori commented 4 years ago

Using Python 3.8 I'm getting this error ...

Traceback (most recent call last):
  File "/usr/local/bin/rma", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/site-packages/rma/cli/rma_cli.py", line 96, in main
    start_time = time.clock()
AttributeError: module 'time' has no attribute 'clock'

Likely cause is this:

The function time.clock() has been removed, after having been deprecated since Python 3.3: use time.perf_counter() or time.process_time() instead, depending on your requirements, to have well-defined behavior. (Contributed by Matthias Bussonnier in bpo-36895.)