Commit graph

47 commits

Author SHA1 Message Date
Laurent Cheylus
54e8ed5ec5
runtime: add used_memory implementation for OpenBSD (#24918) 2025-07-17 17:51:07 +03:00
Kim Shrier
c3dfe62d7b
runtime: add used_memory() implementation for FreeBSD (#24909) 2025-07-17 10:14:01 +03:00
Laurent Cheylus
7b3e7cb447
runtime: add note for the availability of the used_memory implementation (#24913) 2025-07-16 16:53:06 +03:00
Delyan Angelov
a15a9cc123
runtime: reduce allocations done in runtime.used_memory/0 on linux (#24901) 2025-07-14 16:24:07 +03:00
kbkpbot
220cdda07b
runtime: add used_memory() (#24897) 2025-07-14 12:45:53 +03:00
Delyan Angelov
3271c728d5 docs: use cmd/tools/find_doc_comments_with_no_dots.v to put some missing dots in the doc comments of public symbols. 2025-07-02 15:45:47 +03:00
Laurent Cheylus
0628bf32f1
runtime: fix -cstrict compilation (use usize() cast in free_memory) on OpenBSD (#24696) 2025-06-11 13:13:39 +03:00
kbkpbot
8c573cf355
runtime: make free_memory() and total_memory() return Result types to allow for reporting errors (#24651) 2025-06-04 22:35:49 +03:00
Laurent Cheylus
2fcad534db
runtime: fix cast error in free_memory implementation for OpenBSD (#24445) 2025-05-10 12:19:30 +03:00
Laurent Cheylus
656afa9d13
runtime: improve free_memory implementation for OpenBSD, by getting the stats from its UVM system (#24431) 2025-05-08 12:55:10 +03:00
Laurent Cheylus
b91bbad692
runtime: add note for the availability of the free_memory/0 implementation (#23620) 2025-01-31 19:43:56 +02:00
kbkpbot
7549020d1f
runtime: add free_memory/0 implementation for FreeBSD too (fix #23581) (#23594) 2025-01-29 23:38:14 +02:00
Laurent Cheylus
67a8c81803
runtime: add free_memory/0 implementation for OpenBSD (fix #23579) (#23583) 2025-01-26 07:57:28 +02:00
Delyan Angelov
b67b8bfcc8
runtime: force runtime.nr_jobs() to return 1, while V is bootstrapping itself, from vc/ source, that was compiled with -os cross (fix #22991) 2024-11-27 16:20:14 +02:00
Delyan Angelov
d435ef34fc os,runtime: workaround for v.c generation instability 2024-05-01 21:51:28 +03:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
l-m
f82529e020
os: add os.page_size() (#19770) 2023-11-05 13:35:28 +02:00
Larpon
95509cf8fb
all: make all struct C.XYZ -> pub struct C.XYZ (#19651) 2023-10-25 15:01:50 +03:00
Alexander Medvednikov
545ee1ae23 checker: stricter rules for C types; C aliases; sokol fixes 2023-10-14 18:31:44 +03:00
Delyan Angelov
e03c0329c1
Revert "runtime: cleanup free_memory comptime conditional (#18968)"
This reverts commit 571469a6ac.
2023-07-26 09:01:37 +03:00
phoebe
571469a6ac
runtime: cleanup free_memory comptime conditional (#18968) 2023-07-26 07:43:08 +03:00
kbkpbot
5f0ad64155
runtime: add new functions total_memory/0 and free_memory/0 (#18499) 2023-06-24 14:15:15 +03:00
Alexander Medvednikov
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
Delyan Angelov
d63f395061
runtime: simplify nr_cpus 2022-01-19 19:29:29 +02:00
jeffmikels
a60b381d5e
docs: adding skeleton README.md files for all vlib modules (#13034) 2022-01-05 18:06:08 +02:00
Alexander Medvednikov
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
div72
d84ffbf73c
runtime: decrement default cpu amount in nr_jobs (#10841) 2021-07-17 17:07:59 +03:00
Delyan Angelov
9b78d7d21d
tools: check formatting of more modules with v test-cleancode, colorize v vet output 2021-03-24 12:39:39 +02:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
Larpon
9e6575eaab
runtime: document all functions (#7612) 2020-12-27 20:14:43 +02:00
Delyan Angelov
b999d01de7 runtime: use GetCurrentProcessorNumber for runtime.nr_cpus() 2020-09-25 22:02:29 +03:00
Carlos Esquerdo Bernat
c60948e52e
runtime: simplify nr_cpus(), add a test for nr_jobs() 2020-07-20 17:36:44 +03:00
lutherwenxu
dc4db87be3
vlib: use new filename format 2020-04-11 19:51:32 +02:00
Delyan Angelov
ba088056ed
solaris: make 'v test-compiler' pass (stage 2) 2020-03-21 09:48:02 +01:00
Delyan Angelov
4bb5d7de8b
tooling: use term.header for tests 2020-02-08 17:01:10 +01:00
joe-conigliaro
7f709c3285
update copyright years 2020-02-03 05:00:36 +01:00
Delyan Angelov
64a9f43405 Make REPL tests parallel too 2020-01-20 17:06:36 +01:00
Delyan Angelov
7882312697 rename $if mac => $if macos , _mac.v => _darwin.v 2020-01-09 11:12:35 +01:00
Delyan Angelov
e577b40743 compiler: add support for $if x32, x64, big_endian, little_endian 2019-11-15 16:14:28 +03:00
Nicolas Sauzede
1292163637 runtime: add windows support for nr_cpus() 2019-10-13 01:01:15 +03:00
Alexander Medvednikov
4c91a5c94b module caching: generate type aliases 2019-10-12 04:09:37 +03:00
Alexander Medvednikov
4cd9099f74 disable $if for headers for now 2019-10-12 03:49:36 +03:00
Alexander Medvednikov
6db7518189 make $if work with includes: skip the body if the target is different 2019-10-12 03:48:32 +03:00
Alexander Medvednikov
9193242a76 fix runtime module test 2019-10-11 14:16:02 +03:00
Alexander Medvednikov
52c2fa44b8 runtime: nr_cpus() 2019-10-11 13:47:56 +03:00