Skip to content

Remove the cputime clocks.#197

Merged
sunfishcode merged 2 commits intoWebAssembly:masterfrom
sunfishcode:no-cputime
Feb 19, 2020
Merged

Remove the cputime clocks.#197
sunfishcode merged 2 commits intoWebAssembly:masterfrom
sunfishcode:no-cputime

Conversation

@sunfishcode
Copy link
Copy Markdown
Member

Remove $process_cputime_id and $thread_cputime_id.

Some implementations will not have one wasm nanoprocess per OS process,
or one wasm thread per OS thread, making it difficult to implement
$process_cputime_id meaningfully. Also, the concept of "cputime"
available in most host environments isn't easy to directly connect to
what we might expect "cputime" to mean for wasm code.

These correspond to CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID
in POSIX, which are optional:

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html

@pchickey
Copy link
Copy Markdown
Contributor

Please merge with master before merging so that this PR picks up CI checking for docs generation. You'll have to regenerate docs as well (cd tools/witx && cargo run -- repo-docs).

Remove $process_cputime_id and $thread_cputime_id.

Some implementations will not have one wasm nanoprocess per OS process,
or one wasm thread per OS thread, making it difficult to implement
$process_cputime_id meaningfully. Also, the concept of "cputime"
available in most host environments isn't easy to directly connect to
what we might expect "cputime" to mean for wasm code.

These correspond to `CLOCK_PROCESS_CPUTIME_ID` and `CLOCK_THREAD_CPUTIME_ID`
in POSIX, which are optional:

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html
@sunfishcode
Copy link
Copy Markdown
Member Author

Merged with master and docs auto-generated.

@sunfishcode sunfishcode merged commit 2054cc4 into WebAssembly:master Feb 19, 2020
@sunfishcode sunfishcode deleted the no-cputime branch February 19, 2020 19:03
sunfishcode added a commit to sunfishcode/wasi-test that referenced this pull request Feb 11, 2021
Remove the tests for `CLOCKID_PROCESS_CPUTIME_ID` and
`CLOCKID_THREAD_CPUTIME_ID`, since these values were
[removed from the WASI spec].

[removed from the WASI spec]: WebAssembly/WASI#197
caspervonb pushed a commit to khronosproject/wasi-test that referenced this pull request Feb 11, 2021
Remove the tests for `CLOCKID_PROCESS_CPUTIME_ID` and
`CLOCKID_THREAD_CPUTIME_ID`, since these values were
[removed from the WASI spec].

[removed from the WASI spec]: WebAssembly/WASI#197
yoshuawuyts pushed a commit to yoshuawuyts/WASI that referenced this pull request Nov 25, 2025
* Remove the cputime clocks.

Remove $process_cputime_id and $thread_cputime_id.

Some implementations will not have one wasm nanoprocess per OS process,
or one wasm thread per OS thread, making it difficult to implement
$process_cputime_id meaningfully. Also, the concept of "cputime"
available in most host environments isn't easy to directly connect to
what we might expect "cputime" to mean for wasm code.

These correspond to `CLOCK_PROCESS_CPUTIME_ID` and `CLOCK_THREAD_CPUTIME_ID`
in POSIX, which are optional:

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html

* Auto-generate docs.
yoshuawuyts pushed a commit to yoshuawuyts/WASI that referenced this pull request Nov 25, 2025
* Remove the cputime clocks.

Remove $process_cputime_id and $thread_cputime_id.

Some implementations will not have one wasm nanoprocess per OS process,
or one wasm thread per OS thread, making it difficult to implement
$process_cputime_id meaningfully. Also, the concept of "cputime"
available in most host environments isn't easy to directly connect to
what we might expect "cputime" to mean for wasm code.

These correspond to `CLOCK_PROCESS_CPUTIME_ID` and `CLOCK_THREAD_CPUTIME_ID`
in POSIX, which are optional:

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html

* Auto-generate docs.
yoshuawuyts pushed a commit to yoshuawuyts/WASI that referenced this pull request Nov 25, 2025
* Remove the cputime clocks.

Remove $process_cputime_id and $thread_cputime_id.

Some implementations will not have one wasm nanoprocess per OS process,
or one wasm thread per OS thread, making it difficult to implement
$process_cputime_id meaningfully. Also, the concept of "cputime"
available in most host environments isn't easy to directly connect to
what we might expect "cputime" to mean for wasm code.

These correspond to `CLOCK_PROCESS_CPUTIME_ID` and `CLOCK_THREAD_CPUTIME_ID`
in POSIX, which are optional:

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html

* Auto-generate docs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants