nushell/crates
Ondrej Baudys e266590813
Fix ps command CPU usage on Apple Silicon M1 macs. #4142 (#6457)
* Fix ps command CPU usage on Apple Silicon M1 macs. #4142

The cpu user and system times returned my libproc are not in
nanoseconds; they are in mach ticks units.  This is not documented very
well.  The convert from mach ticks to ns, the kernel provides a timebase
info function and datatype:

https://developer.apple.com/documentation/driverkit/3433733-mach_timebase_info

The commit makes the PS command work for me.

* Cargo fmt of previous commit.

* Clippy format suggestion

Co-authored-by: Ondrej Baudys <ondrej.baudys@nextgen.net>
2022-09-01 18:09:52 +12:00
..
nu_plugin_custom_values add MessagePack as a plugin protocol (#6370) 2022-08-21 06:13:38 -05:00
nu_plugin_example remove capnp protocol for plugin... (#6421) 2022-08-31 17:33:30 -05:00
nu_plugin_gstat add MessagePack as a plugin protocol (#6370) 2022-08-21 06:13:38 -05:00
nu_plugin_inc Bump dev version (#6350) 2022-08-18 21:14:17 +12:00
nu_plugin_python fix python plugin example (#6242) 2022-08-05 23:57:31 -04:00
nu_plugin_query Bump dev version (#6350) 2022-08-18 21:14:17 +12:00
nu-cli Revert "Add support for optional list stream output formatting (#6325)" (#6454) 2022-08-31 18:09:40 -05:00
nu-color-config Bump dev version (#6350) 2022-08-18 21:14:17 +12:00
nu-command Fix build on *BSD, illumos, etc. (#6456) 2022-09-01 12:34:26 +12:00
nu-engine Revert "Add support for optional list stream output formatting (#6325)" (#6454) 2022-08-31 18:09:40 -05:00
nu-glob Bump dev version (#6350) 2022-08-18 21:14:17 +12:00
nu-json Bump dev version (#6350) 2022-08-18 21:14:17 +12:00
nu-parser remove capnp protocol for plugin... (#6421) 2022-08-31 17:33:30 -05:00
nu-path Fix build on *BSD, illumos, etc. (#6456) 2022-09-01 12:34:26 +12:00
nu-plugin remove capnp protocol for plugin... (#6421) 2022-08-31 17:33:30 -05:00
nu-pretty-hex Bump dev version (#6350) 2022-08-18 21:14:17 +12:00
nu-protocol Revert "Add support for optional list stream output formatting (#6325)" (#6454) 2022-08-31 18:09:40 -05:00
nu-system Fix ps command CPU usage on Apple Silicon M1 macs. #4142 (#6457) 2022-09-01 18:09:52 +12:00
nu-table Bump dev version (#6350) 2022-08-18 21:14:17 +12:00
nu-term-grid Bump dev version (#6350) 2022-08-18 21:14:17 +12:00
nu-test-support Bump dev version (#6350) 2022-08-18 21:14:17 +12:00
nu-utils feat: external completions for commands/flags (#6295) 2022-08-22 21:38:51 +03:00
old Bump dev version (#6350) 2022-08-18 21:14:17 +12:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00

Nushell core libraries and plugins

These sub-crates form both the foundation for Nu and a set of plugins which extend Nu with additional functionality.

Foundational libraries are split into two kinds of crates:

  • Core crates - those crates that work together to build the Nushell language engine
  • Support crates - a set of crates that support the engine with additional features like JSON support, ANSI support, and more.

Plugins are likewise also split into two types:

  • Core plugins - plugins that provide part of the default experience of Nu, including access to the system properties, processes, and web-connectivity features.
  • Extra plugins - these plugins run a wide range of different capabilities like working with different file types, charting, viewing binary data, and more.