HaikuUtils icon indicating copy to clipboard operation
HaikuUtils copied to clipboard

SystemManager: show process info in the main window

Open diversys opened this issue 4 years ago • 7 comments

This way it is much easier to see what's going on and doesn't require extra clicks.

Example:

image

diversys avatar Nov 26 '20 10:11 diversys

Just for interest: what operating system is used in this screenshot? It doesn't look like windows or X11/Wayland based *nix.

X547 avatar Nov 26 '20 11:11 X547

https://github.com/SerenityOS/serenity

Here's a video where the developer implemented said feature: https://www.youtube.com/watch?v=ofhjmHhzqAU

You might find interesting other videos of him working on Process Manager (now System Monitor) as well as many other parts of his OS :)

diversys avatar Nov 26 '20 11:11 diversys

My SystemManager is largely inspired by ProcessHacker. But instead of one application, separate applications are used for processes, services, sockets (not yet published).

X547 avatar Nov 26 '20 11:11 X547

Yeah, I also think that separate apps are better and this app includes too many features. However, it still might be useful to borrow some ideas from. Like list of open files by a process. I don't think there are any apps that can do that on Haiku.

diversys avatar Nov 26 '20 13:11 diversys

Like list of open files by a process.

This feature is already implemented in Handles utility and it is planned to be moved in Handles tab of team window (currently stubbed). Unfortunately Haiku kernel do not provide information about opened file names and paths so this information can't be displayed (#15774).

X547 avatar Nov 26 '20 13:11 X547

There is this, not sure how useful it is.

fdinfo --help
Usage: fdinfo <id/pattern> or -[dD] <path-to-device> or -[fF] <file>
  Shows info about the used file descriptors in the system.

  -d    Only shows accesses to the given device
  -D    Likewise, but only shows the teams that access it
  -f    Only shows accesses to the given file
  -F    Likewise, but only shows the teams that access it
fdinfo -D /bin/bash
 1690 /boot/system/servers/debug_server
 1770 /boot/system/Tracker
 1780 /boot/system/Deskbar

diversys avatar Nov 26 '20 13:11 diversys

fdinfo -D /bin/bash

This works in opposite direction (file name -> team list). It can't be used to efficiently get file name of FD.

X547 avatar Nov 26 '20 13:11 X547