Code Monkey home page Code Monkey logo

mem_usage_ui's People

Contributors

luxaritas avatar parikls avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mem_usage_ui's Issues

Rounding mem to a finer resolution than 1 MB

First thanks for the tool, I find it very useful.

It occurs me that the graph shows usage rounded to the nearest MB. There are situations in which, i.e. to monitor slow memory leaks, I would appreciate seeing a finer resolution. Would it be possible?

suggestion to warn of leaving graph

First of all, thank you ! awesome work
..
just one suggestion, when you navigate away from a memory graph that has been collecting for a while, and you quickly want to look at the graph of another process, perhaps warn the user that the graphs will be re-set when you get back.

that or actually save the history so you can get back to the same graph.

(i clicked on your github link and lost 12 hours of data collection...so that is why i am here ;) )

other than that, no complaints. awesome !!

Pip installation fails with Python 3.10.8 with `error: legacy-install-failure`

Installing on Python 3.10.8 using pip install mem_usage_cli returns an error. I'm on M1 mac, running x86 conda-forge installed Python via rosetta.

Error seems to be with the uvloop package

❯ pip install mem_usage_ui
Collecting mem_usage_ui
  Downloading mem_usage_ui-1.0.6.tar.gz (208 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 208.7/208.7 kB 2.4 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting psutil==5.8.0
  Downloading psutil-5.8.0.tar.gz (470 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 470.9/470.9 kB 3.1 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting aiohttp==3.7.4.post0
  Downloading aiohttp-3.7.4.post0.tar.gz (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 3.1 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting uvloop==0.15.2
  Downloading uvloop-0.15.2.tar.gz (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 3.2 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: yarl<2.0,>=1.0 in /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/lib/python3.10/site-packages (from aiohttp==3.7.4.post0->mem_usage_ui) (1.8.1)
Requirement already satisfied: typing-extensions>=3.6.5 in /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/lib/python3.10/site-packages (from aiohttp==3.7.4.post0->mem_usage_ui) (4.4.0)
Collecting chardet<5.0,>=2.0
  Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.7/178.7 kB 2.9 MB/s eta 0:00:00
Collecting async-timeout<4.0,>=3.0
  Downloading async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Requirement already satisfied: multidict<7.0,>=4.5 in /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/lib/python3.10/site-packages (from aiohttp==3.7.4.post0->mem_usage_ui) (6.0.2)
Requirement already satisfied: attrs>=17.3.0 in /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/lib/python3.10/site-packages (from aiohttp==3.7.4.post0->mem_usage_ui) (22.1.0)
Requirement already satisfied: idna>=2.0 in /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/lib/python3.10/site-packages (from yarl<2.0,>=1.0->aiohttp==3.7.4.post0->mem_usage_ui) (3.4)
Building wheels for collected packages: mem_usage_ui, aiohttp, psutil, uvloop
  Building wheel for mem_usage_ui (setup.py) ... done
  Created wheel for mem_usage_ui: filename=mem_usage_ui-1.0.6-py3-none-any.whl size=208731 sha256=9dcfb64b4becff2252255240b312cb66423e14e4f39192ecc49fba18593637bf
  Stored in directory: /Users/corneliusromer/Library/Caches/pip/wheels/98/d2/08/6cc8c4449c86ab23fba8c1f4d4edf20d10afd0db8fdb7dbca2
  Building wheel for aiohttp (pyproject.toml) ... done
  Created wheel for aiohttp: filename=aiohttp-3.7.4.post0-py3-none-any.whl size=451927 sha256=d3ea31747a917f860bddcca52506da38ac0d2b21ef004ded948955027b34e649
  Stored in directory: /Users/corneliusromer/Library/Caches/pip/wheels/92/bc/04/f42556c88bde486707e29be109352ee0263b6413b0e25dc824
  Building wheel for psutil (setup.py) ... done
  Created wheel for psutil: filename=psutil-5.8.0-cp310-cp310-macosx_10_9_x86_64.whl size=234326 sha256=aa8adc3d076354fecda7714e4e5f7800ba2d62fc1b333722a8785b2acb31a5f0
  Stored in directory: /Users/corneliusromer/Library/Caches/pip/wheels/70/2d/ab/4b56013932b576e1ed5b05136dc7cf4a8617da56968d667d25
  Building wheel for uvloop (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [336 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.9-x86_64-cpython-310
      creating build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/_version.py -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/_noop.py -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/_testbase.py -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      running egg_info
      writing uvloop.egg-info/PKG-INFO
      writing dependency_links to uvloop.egg-info/dependency_links.txt
      writing requirements to uvloop.egg-info/requires.txt
      writing top-level names to uvloop.egg-info/top_level.txt
      listing git files failed - pretending there aren't any
      reading manifest file 'uvloop.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*' found under directory 'vendor/libuv/.git'
      warning: no previously-included files matching '*' found under directory 'vendor/libuv/docs'
      warning: no previously-included files matching '*' found under directory 'vendor/libuv/img'
      adding license file 'LICENSE-APACHE'
      adding license file 'LICENSE-MIT'
      writing manifest file 'uvloop.egg-info/SOURCES.txt'
      /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'uvloop.handles' as data is deprecated, please list it in `packages`.
          !!
      
      
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'uvloop.handles' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.
      
          'uvloop.handles' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).
      
          Please make sure that 'uvloop.handles' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
      
          You can read more about "package discovery" and "data files" on setuptools
          documentation page.
      
      
      !!
      
        check.warn(importable)
      /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'uvloop.includes' as data is deprecated, please list it in `packages`.
          !!
      
      
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'uvloop.includes' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.
      
          'uvloop.includes' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).
      
          Please make sure that 'uvloop.includes' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
      
          You can read more about "package discovery" and "data files" on setuptools
          documentation page.
      
      
      !!
      
        check.warn(importable)
      copying uvloop/cbhandles.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/cbhandles.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/dns.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/errors.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/loop.c -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/loop.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/loop.pyi -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/loop.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/lru.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/pseudosock.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/py.typed -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/request.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/request.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/server.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/server.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/sslproto.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/sslproto.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      creating build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/async_.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/async_.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/basetransport.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/basetransport.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/check.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/check.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/handle.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/handle.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/idle.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/idle.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/pipe.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/pipe.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/poll.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/poll.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/process.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/process.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/stream.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/stream.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/streamserver.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/streamserver.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/tcp.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/tcp.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/timer.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/timer.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/udp.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/udp.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      creating build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/compat.h -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/consts.pxi -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/debug.h -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/debug.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/flowcontrol.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/fork_handler.h -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/python.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/stdlib.pxi -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/system.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/uv.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      running build_ext
      checking for a BSD-compatible install... /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/bin/install -c
      checking whether build environment is sane... yes
      checking for a thread-safe mkdir -p... /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/bin/mkdir -p
      checking for gawk... no
      checking for mawk... no
      checking for nawk... no
      checking for awk... awk
      checking whether make sets $(MAKE)... yes
      checking whether make supports nested variables... yes
      checking build system type... x86_64-apple-darwin22.2.0
      checking host system type... x86_64-apple-darwin22.2.0
      checking for gcc... gcc
      checking whether the C compiler works... yes
      checking for C compiler default output file name... a.out
      checking for suffix of executables...
      checking whether we are cross compiling... no
      checking for suffix of object files... o
      checking whether we are using the GNU C compiler... yes
      checking whether gcc accepts -g... yes
      checking for gcc option to accept ISO C89... none needed
      checking whether gcc understands -c and -o together... yes
      checking whether make supports the include directive... yes (GNU style)
      checking dependency style of gcc... gcc3
      checking for gcc way to treat warnings as errors... -Werror
      checking if gcc supports -fvisibility=hidden... yes
      checking if gcc supports -g flag... yes
      checking if gcc supports -std=gnu89 flag... yes
      checking if gcc supports -Wall flag... yes
      checking if gcc supports -Wextra flag... yes
      checking if gcc supports -Wno-long-long flag... yes
      checking if gcc supports -Wno-unused-parameter flag... yes
      checking if gcc supports -Wstrict-prototypes flag... yes
      checking for ar... ar
      checking the archiver (ar) interface... ar
      checking how to print strings... printf
      checking for a sed that does not truncate output... /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/bin/sed
      checking for grep that handles long lines and -e... /usr/bin/grep
      checking for egrep... /usr/bin/grep -E
      checking for fgrep... /usr/bin/grep -F
      checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
      checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
      checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
      checking the name lister (/usr/bin/nm -B) interface... BSD nm
      checking whether ln -s works... yes
      checking the maximum length of command line arguments... 786432
      checking how to convert x86_64-apple-darwin22.2.0 file names to x86_64-apple-darwin22.2.0 format... func_convert_file_noop
      checking how to convert x86_64-apple-darwin22.2.0 file names to toolchain format... func_convert_file_noop
      checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
      checking for objdump... objdump
      checking how to recognize dependent libraries... pass_all
      checking for dlltool... no
      checking how to associate runtime and link libraries... printf %s\n
      checking for archiver @FILE support... no
      checking for strip... strip
      checking for ranlib... ranlib
      checking command to parse /usr/bin/nm -B output from gcc object... ok
      checking for sysroot... no
      checking for a working dd... /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/bin/dd
      checking how to truncate binary pipes... /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/bin/dd bs=4096 count=1
      checking for mt... no
      checking if : is a manifest tool... no
      checking for dsymutil... dsymutil
      checking for nmedit... nmedit
      checking for lipo... lipo
      checking for otool... otool
      checking for otool64... no
      checking for -single_module linker flag... yes
      checking for -exported_symbols_list linker flag... yes
      checking for -force_load linker flag... yes
      checking how to run the C preprocessor... gcc -E
      checking for ANSI C header files... yes
      checking for sys/types.h... yes
      checking for sys/stat.h... yes
      checking for stdlib.h... yes
      checking for string.h... yes
      checking for memory.h... yes
      checking for strings.h... yes
      checking for inttypes.h... yes
      checking for stdint.h... yes
      checking for unistd.h... yes
      checking for dlfcn.h... yes
      checking for objdir... .libs
      checking if gcc supports -fno-rtti -fno-exceptions... yes
      checking for gcc option to produce PIC... -fno-common -DPIC
      checking if gcc PIC flag -fno-common -DPIC works... yes
      checking if gcc static flag -static works... no
      checking if gcc supports -c -o file.o... yes
      checking if gcc supports -c -o file.o... (cached) yes
      checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
      checking dynamic linker characteristics... darwin22.2.0 dyld
      checking how to hardcode library paths into programs... immediate
      checking whether stripping libraries is possible... yes
      checking if libtool supports shared libraries... yes
      checking whether to build shared libraries... yes
      checking whether to build static libraries... yes
      checking whether make supports nested variables... (cached) yes
      checking whether gcc is Clang... yes
      checking whether Clang needs flag to prevent "argument unused" warning when linking with -pthread... no
      checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
      checking whether more special flags are required for pthreads... no
      checking for PTHREAD_PRIO_INHERIT... yes
      checking for dlopen in -ldl... yes
      checking for library containing kstat_lookup... no
      checking for library containing gethostbyname... none required
      checking for library containing perfstat_cpu... no
      checking for library containing clock_gettime... none required
      checking for library containing sendfile... none required
      checking for library containing socket... none required
      checking for special C compiler options needed for large files... no
      checking for _FILE_OFFSET_BITS value needed for large files... no
      checking sys/ahafs_evProds.h usability... no
      checking sys/ahafs_evProds.h presence... no
      checking for sys/ahafs_evProds.h... no
      checking that generated files are newer than configure... done
      configure: creating ./config.status
      config.status: creating Makefile
      config.status: creating libuv.pc
      config.status: executing depfiles commands
      config.status: executing libtool commands
        CC       src/libuv_la-random.lo
        CC       src/libuv_la-idna.lo
        CC       src/libuv_la-fs-poll.lo
        CC       src/libuv_la-inet.lo
        CC       src/libuv_la-timer.lo
        CC       src/libuv_la-threadpool.lo
        CC       src/libuv_la-strscpy.lo
        CC       src/libuv_la-uv-data-getter-setters.lo
        CC       src/libuv_la-version.lo
        CC       src/libuv_la-uv-common.lo
        CC       src/unix/libuv_la-async.lo
        CC       src/unix/libuv_la-core.lo
        CC       src/unix/libuv_la-dl.lo
        CC       src/unix/libuv_la-fs.lo
        CC       src/unix/libuv_la-getaddrinfo.lo
        CC       src/unix/libuv_la-getnameinfo.lo
        CC       src/unix/libuv_la-loop.lo
        CC       src/unix/libuv_la-pipe.lo
        CC       src/unix/libuv_la-loop-watcher.lo
        CC       src/unix/libuv_la-poll.lo
        CC       src/unix/libuv_la-process.lo
        CC       src/unix/libuv_la-random-devurandom.lo
        CC       src/unix/libuv_la-signal.lo
        CC       src/unix/libuv_la-stream.lo
        CC       src/unix/libuv_la-tcp.lo
        CC       src/unix/libuv_la-thread.lo
        CC       src/unix/libuv_la-tty.lo
        CC       src/unix/libuv_la-udp.lo
        CC       src/unix/libuv_la-bsd-ifaddrs.lo
        CC       src/unix/libuv_la-darwin-proctitle.lo
        CC       src/unix/libuv_la-darwin.lo
        CC       src/unix/libuv_la-fsevents.lo
        CC       src/unix/libuv_la-kqueue.lo
        CC       src/unix/libuv_la-proctitle.lo
        CC       src/unix/libuv_la-random-getentropy.lo
        CCLD     libuv.la
      building 'uvloop.loop' extension
      creating build/temp.macosx-10.9-x86_64-cpython-310
      creating build/temp.macosx-10.9-x86_64-cpython-310/uvloop
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/include -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/include -I/opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/include/python3.10 -I/private/var/folders/qf/4kkcfypx0gbfb0t9336522_r0000gn/T/pip-install-1miox1e3/uvloop_dd3f463e42654f5d9050961f06e17ae9/vendor/libuv/include -c uvloop/loop.c -o build/temp.macosx-10.9-x86_64-cpython-310/uvloop/loop.o -O2
      uvloop/loop.c:166911:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                          CYTHON_FALLTHROUGH;
                          ^
      uvloop/loop.c:290:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
            #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                       ^
      uvloop/loop.c:166922:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                          CYTHON_FALLTHROUGH;
                          ^
      uvloop/loop.c:290:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
            #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                       ^
      uvloop/loop.c:167055:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                          CYTHON_FALLTHROUGH;
                          ^
      uvloop/loop.c:290:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
            #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                       ^
      uvloop/loop.c:167066:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                          CYTHON_FALLTHROUGH;
                          ^
      uvloop/loop.c:290:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
            #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                       ^
      uvloop/loop.c:169806:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                  ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                        ^
      uvloop/loop.c:169806:17: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
                  ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      uvloop/loop.c:169811:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                  ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                        ^
      uvloop/loop.c:169811:17: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
                  ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      uvloop/loop.c:169895:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                  ret = _PyGen_Send((PyGenObject*)yf, NULL);
                        ^
      uvloop/loop.c:169895:17: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
                  ret = _PyGen_Send((PyGenObject*)yf, NULL);
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      7 warnings and 3 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for uvloop
  Running setup.py clean for uvloop
Successfully built mem_usage_ui aiohttp psutil
Failed to build uvloop
Installing collected packages: uvloop, psutil, chardet, async-timeout, aiohttp, mem_usage_ui
  Running setup.py install for uvloop ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for uvloop did not run successfully.
  │ exit code: 1
  ╰─> [182 lines of output]
      running install
      /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build/lib.macosx-10.9-x86_64-cpython-310
      creating build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/_version.py -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/_noop.py -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/_testbase.py -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      running egg_info
      writing uvloop.egg-info/PKG-INFO
      writing dependency_links to uvloop.egg-info/dependency_links.txt
      writing requirements to uvloop.egg-info/requires.txt
      writing top-level names to uvloop.egg-info/top_level.txt
      listing git files failed - pretending there aren't any
      reading manifest file 'uvloop.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*' found under directory 'vendor/libuv/.git'
      warning: no previously-included files matching '*' found under directory 'vendor/libuv/docs'
      warning: no previously-included files matching '*' found under directory 'vendor/libuv/img'
      adding license file 'LICENSE-APACHE'
      adding license file 'LICENSE-MIT'
      writing manifest file 'uvloop.egg-info/SOURCES.txt'
      /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'uvloop.handles' as data is deprecated, please list it in `packages`.
          !!
      
      
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'uvloop.handles' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.
      
          'uvloop.handles' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).
      
          Please make sure that 'uvloop.handles' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
      
          You can read more about "package discovery" and "data files" on setuptools
          documentation page.
      
      
      !!
      
        check.warn(importable)
      /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'uvloop.includes' as data is deprecated, please list it in `packages`.
          !!
      
      
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'uvloop.includes' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.
      
          'uvloop.includes' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).
      
          Please make sure that 'uvloop.includes' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
      
          You can read more about "package discovery" and "data files" on setuptools
          documentation page.
      
      
      !!
      
        check.warn(importable)
      copying uvloop/cbhandles.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/cbhandles.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/dns.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/errors.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/loop.c -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/loop.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/loop.pyi -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/loop.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/lru.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/pseudosock.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/py.typed -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/request.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/request.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/server.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/server.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/sslproto.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      copying uvloop/sslproto.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop
      creating build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/async_.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/async_.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/basetransport.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/basetransport.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/check.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/check.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/handle.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/handle.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/idle.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/idle.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/pipe.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/pipe.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/poll.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/poll.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/process.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/process.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/stream.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/stream.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/streamserver.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/streamserver.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/tcp.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/tcp.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/timer.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/timer.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/udp.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      copying uvloop/handles/udp.pyx -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/handles
      creating build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/compat.h -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/consts.pxi -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/debug.h -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/debug.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/flowcontrol.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/fork_handler.h -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/python.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/stdlib.pxi -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/system.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      copying uvloop/includes/uv.pxd -> build/lib.macosx-10.9-x86_64-cpython-310/uvloop/includes
      running build_ext
      building 'uvloop.loop' extension
      creating build/temp.macosx-10.9-x86_64-cpython-310
      creating build/temp.macosx-10.9-x86_64-cpython-310/uvloop
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/include -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/include -I/opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/include/python3.10 -I/private/var/folders/qf/4kkcfypx0gbfb0t9336522_r0000gn/T/pip-install-1miox1e3/uvloop_dd3f463e42654f5d9050961f06e17ae9/vendor/libuv/include -c uvloop/loop.c -o build/temp.macosx-10.9-x86_64-cpython-310/uvloop/loop.o -O2
      uvloop/loop.c:166911:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                          CYTHON_FALLTHROUGH;
                          ^
      uvloop/loop.c:290:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
            #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                       ^
      uvloop/loop.c:166922:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                          CYTHON_FALLTHROUGH;
                          ^
      uvloop/loop.c:290:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
            #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                       ^
      uvloop/loop.c:167055:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                          CYTHON_FALLTHROUGH;
                          ^
      uvloop/loop.c:290:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
            #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                       ^
      uvloop/loop.c:167066:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                          CYTHON_FALLTHROUGH;
                          ^
      uvloop/loop.c:290:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
            #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                       ^
      uvloop/loop.c:169806:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                  ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                        ^
      uvloop/loop.c:169806:17: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
                  ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      uvloop/loop.c:169811:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                  ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                        ^
      uvloop/loop.c:169811:17: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
                  ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      uvloop/loop.c:169895:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                  ret = _PyGen_Send((PyGenObject*)yf, NULL);
                        ^
      uvloop/loop.c:169895:17: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
                  ret = _PyGen_Send((PyGenObject*)yf, NULL);
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      7 warnings and 3 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> uvloop

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Problem runnign with Python3.8

hi
This tool has been very helpful. Thank you for developing it.
I am having trouble running your tools with Python3.8

I am running linux Mint 20
I installed the tool using pip3
It installed the following
mem_usage_ui in /home/aditya/.local/lib/python3.8/site-packages (1.0.1)
psutil==5.4.8 in /home/aditya/.local/lib/python3.8/site-packages (from mem_usage_ui) (5.4.8)
uvloop==0.12.0rc1 in /home/aditya/.local/lib/python3.8/site-packages (from mem_usage_ui) (0.12.0rc1)
aiohttp==3.5.1 in /home/aditya/.local/lib/python3.8/site-packages (from mem_usage_ui) (3.5.1)
chardet<4.0,>=2.0 in /usr/lib/python3/dist-packages (from aiohttp==3.5.1->mem_usage_ui) (3.0.4)
multidict<5.0,>=4.0 in /home/aditya/.local/lib/python3.8/site-packages (from aiohttp==3.5.1->mem_usage_ui) (4.7.6)
yarl<2.0,>=1.0 in /home/aditya/.local/lib/python3.8/site-packages (from aiohttp==3.5.1->mem_usage_ui) (1.5.1)
async-timeout<4.0,>=3.0 in /home/aditya/.local/lib/python3.8/site-packages (from aiohttp==3.5.1->mem_usage_ui) (3.0.1)
attrs>=17.3.0 in /usr/lib/python3/dist-packages (from aiohttp==3.5.1->mem_usage_ui) (19.3.0)
idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0,>=1.0->aiohttp==3.5.1->mem_usage_ui) (2.8)

Now when I run the tool from the terminal I get the following error

Traceback (most recent call last):
File "/home/aditya/.local/bin/mem_usage_ui", line 5, in
from mem_usage_ui.main import main
File "/home/aditya/.local/lib/python3.8/site-packages/mem_usage_ui/init.py", line 5, in
import uvloop
File "/home/aditya/.local/lib/python3.8/site-packages/uvloop/init.py", line 7, in
from .loop import Loop as __BaseLoop # NOQA
File "uvloop/includes/stdlib.pxi", line 114, in init uvloop.loop
AttributeError: module 'sys' has no attribute 'set_coroutine_wrapper'

Any Idea why this is the case.

Best

Upgrade to psutil==5.8.0

Cool tool! Thank you for creating it.

Trying to run it on my new Macbook Air M1, however, I was getting Input/Output exceptions from psutil, which the library creators have resolved in 5.8.0. Once I upgraded that dependency, everything worked like a charm.

Feature Request - Details when mouse over a point of the graph

Thank you for the UI, it has been very helpful (even though I am going crazy trying to improve the memory usage of my script, haha xD)

I have a feature request: to be able to have the details (time and memory) of a point when the mouse is over it on the graph

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.