spack/lib/spack/spack
Todd Gamblin be6bb413df spack solve: use consistent units for time
`spack solve` is supposed to show you times you can compare. setup, ground, solve, etc.
all in a list. You're also supposed to be able to compare easily across runs. With
`pretty_seconds()` (introduced in #33900), it's easy to miss the units, e.g., spot the
bottleneck here:

```console
> spack solve --timers tcl
    setup        22.125ms
    load         16.083ms
    ground        8.298ms
    solve       848.055us
    total        58.615ms
```

It's easier to see what matters if these are all in the same units, e.g.:

```
> spack solve --timers tcl
    setup         0.0147s
    load          0.0130s
    ground        0.0078s
    solve         0.0008s
    total         0.0463s
```

And the units won't fluctuate from run to run as you make changes.

-[x] make `spack solve` timings consistent like before
2022-12-26 22:28:44 +01:00
..
bootstrap Windows: reenable unit tests (#33385) 2022-12-09 13:27:46 +00:00
build_systems QMakeBuilder: fix bug introduced during multi-bs refactor (#34683) 2022-12-23 13:57:44 -06:00
cmd fix != -> == typo (#34568) 2022-12-17 20:15:15 +01:00
compilers Compiler detection: avoid false recognition of MSVC (#34574) 2022-12-16 19:22:04 +00:00
container black: reformat entire repository with black 2022-07-31 13:29:20 -07:00
detection Windows: add registry query and SDK/WDK packages (#33021) 2022-11-22 00:27:42 -08:00
environment Use file paths/urls correctly (#34452) 2022-12-13 23:44:13 +01:00
hooks remove activate/deactivate support in favor of environments (#29317) 2022-11-11 00:50:07 -08:00
modules vermin: remove all novm comments from code (#34308) 2022-12-05 08:59:27 -07:00
operating_systems Windows: add registry query and SDK/WDK packages (#33021) 2022-11-22 00:27:42 -08:00
platforms Cray manifest: automatically convert 'cray' platform to 'linux' (#34177) 2022-12-08 11:28:06 -08:00
reporters Stop using six in Spack (#33905) 2022-11-15 10:07:54 +01:00
schema parser: refactor with coarser token granularity (#34151) 2022-12-07 14:56:53 -08:00
solver compiler flags: fix mixed flags from cli and yaml (#34218) 2022-12-06 16:32:08 -08:00
test spack solve: use consistent units for time 2022-12-26 22:28:44 +01:00
util spack solve: use consistent units for time 2022-12-26 22:28:44 +01:00
__init__.py Bump version to v0.20.0.dev0 2022-11-14 08:22:29 -06:00
abi.py black: reformat entire repository with black 2022-07-31 13:29:20 -07:00
audit.py PackageBase should not define builder legacy attributes (#33942) 2022-11-18 22:22:51 +01:00
binary_distribution.py index.json.hash, no fatal error if key cannot be fetched (#34643) 2022-12-22 09:48:05 +01:00
build_environment.py spack/package.py: improve editor support for some +/- static props (#34319) 2022-12-13 13:55:32 +01:00
builder.py Forward lookup of the "run_tests" attribute (#34531) 2022-12-15 09:35:33 +01:00
caches.py black: reformat entire repository with black 2022-07-31 13:29:20 -07:00
ci_needs_workaround.py Remove support for running with Python 2.7 (#33063) 2022-11-14 13:11:28 +01:00
ci_optimization.py Remove support for running with Python 2.7 (#33063) 2022-11-14 13:11:28 +01:00
ci.py Use update-index --mirror-url <url> instead of -d <url> (#34519) 2022-12-14 10:03:18 +01:00
compiler.py Windows: reenable unit tests (#33385) 2022-12-09 13:27:46 +00:00
concretize.py Unit tests: make unit tests work for aarch64 machines (#33625) 2022-11-01 16:25:55 -06:00
config.py vermin: remove all novm comments from code (#34308) 2022-12-05 08:59:27 -07:00
cray_manifest.py Cray manifest: automatically convert 'cray' platform to 'linux' (#34177) 2022-12-08 11:28:06 -08:00
database.py vermin: remove all novm comments from code (#34308) 2022-12-05 08:59:27 -07:00
dependency.py Stop using six in Spack (#33905) 2022-11-15 10:07:54 +01:00
directives.py directives: depends_on should not admit anonymous specs (#34368) 2022-12-12 11:24:28 +01:00
directory_layout.py Stop using six in Spack (#33905) 2022-11-15 10:07:54 +01:00
error.py black: reformat entire repository with black 2022-07-31 13:29:20 -07:00
extensions.py black: reformat entire repository with black 2022-07-31 13:29:20 -07:00
fetch_strategy.py Use file paths/urls correctly (#34452) 2022-12-13 23:44:13 +01:00
filesystem_view.py Remove support for running with Python 2.7 (#33063) 2022-11-14 13:11:28 +01:00
gcs_handler.py Revert "Revert "Use urllib handler for s3:// and gs://, improve url_exists through HEAD requests (#34324)"" (#34498) 2022-12-14 23:47:11 +01:00
graph.py black: reformat entire repository with black 2022-07-31 13:29:20 -07:00
hash_types.py bugfix: package hash should affect process, dag, and dunder hashes (#32516) 2022-09-16 00:57:10 +00:00
install_test.py Stop using six in Spack (#33905) 2022-11-15 10:07:54 +01:00
installer.py Fix combine_phase_logs text encoding issues (#34657) 2022-12-22 15:32:48 +01:00
main.py Stop using six in Spack (#33905) 2022-11-15 10:07:54 +01:00
mirror.py Add a proper deprecation warning for update-index -d (#34520) 2022-12-15 17:45:32 +01:00
mixins.py Remove support for running with Python 2.7 (#33063) 2022-11-14 13:11:28 +01:00
multimethod.py Allow for packages with multiple build-systems (#30738) 2022-10-26 20:17:32 +02:00
package_base.py vermin: remove all novm comments from code (#34308) 2022-12-05 08:59:27 -07:00
package_prefs.py Add sgid notice when running on AFS (#30247) 2022-11-17 09:17:41 +01:00
package_test.py black: reformat entire repository with black 2022-07-31 13:29:20 -07:00
package.py spack/package.py: improve editor support for some +/- static props (#34319) 2022-12-13 13:55:32 +01:00
parser.py parser: refactor with coarser token granularity (#34151) 2022-12-07 14:56:53 -08:00
patch.py Allow for packages with multiple build-systems (#30738) 2022-10-26 20:17:32 +02:00
paths.py black: reformat entire repository with black 2022-07-31 13:29:20 -07:00
projections.py black: reformat entire repository with black 2022-07-31 13:29:20 -07:00
provider_index.py Stop using six in Spack (#33905) 2022-11-15 10:07:54 +01:00
relocate.py Bootstrap most of Spack dependencies using environments (#34029) 2022-12-06 11:54:02 +01:00
repo.py new command: spack pkg grep to search package files (#34388) 2022-12-09 10:07:54 -08:00
report.py spack ci: add support for running stand-alone tests (#27877) 2022-08-23 00:52:48 -07:00
reporter.py black: reformat entire repository with black 2022-07-31 13:29:20 -07:00
resource.py Update copyright year to 2022 2022-01-14 22:50:21 -08:00
rewiring.py Relocation should take hardlinks into account (#33460) 2022-10-21 18:30:26 +02:00
s3_handler.py Revert "Revert "Use urllib handler for s3:// and gs://, improve url_exists through HEAD requests (#34324)"" (#34498) 2022-12-14 23:47:11 +01:00
spec_list.py Stop using six in Spack (#33905) 2022-11-15 10:07:54 +01:00
spec.py Windows: reenable unit tests (#33385) 2022-12-09 13:27:46 +00:00
stage.py vermin: remove all novm comments from code (#34308) 2022-12-05 08:59:27 -07:00
store.py Bootstrap most of Spack dependencies using environments (#34029) 2022-12-06 11:54:02 +01:00
subprocess_context.py Refactor a few classes related to package repositories (#32273) 2022-10-11 19:28:27 +02:00
tag.py Remove support for running with Python 2.7 (#33063) 2022-11-14 13:11:28 +01:00
target.py Stop using six in Spack (#33905) 2022-11-15 10:07:54 +01:00
tengine.py vermin: remove all novm comments from code (#34308) 2022-12-05 08:59:27 -07:00
traverse.py Spec traversal: add option for topological ordering (#33817) 2022-11-21 18:33:35 -08:00
url.py Stop using six in Spack (#33905) 2022-11-15 10:07:54 +01:00
user_environment.py Don't set LD_LIBRARY_PATH by default on Linux (#28354) 2022-08-11 09:33:08 -05:00
variant.py Stop using six in Spack (#33905) 2022-11-15 10:07:54 +01:00
verify.py Stop using six in Spack (#33905) 2022-11-15 10:07:54 +01:00
version.py parser: refactor with coarser token granularity (#34151) 2022-12-07 14:56:53 -08:00