Commit Graph

317 Commits

Author SHA1 Message Date
0f179eed88 Switch to two separate atomic counters
It's faster and still correct. I was confused remembering something
about atomic shared pointer ideas before.
2025-09-11 10:53:25 -04:00
b9106a0d3c Add test_reference.cpp 2025-09-10 22:05:31 -04:00
6aaca4c171 Finish reference.hpp 2025-09-10 21:58:08 -04:00
7c4d928807 Start on Ref/WeakRef 2025-09-10 20:04:32 -04:00
5d289ddd42 Add metric for write EAGAIN failures 2025-09-10 16:48:27 -04:00
962a010724 Simplify process_connection_writes condition
And comment explaining that we there's something more precise but more
complex available.
2025-09-10 16:45:04 -04:00
f56ed2bfbe Rename ArenaAllocator -> Arena 2025-09-05 17:57:04 -04:00
46fe51c0bb Make config.toml comments more descriptive and accessible 2025-09-05 16:36:50 -04:00
b93cc2072a Remove -Wno-vla-cxx-extension from .clangd 2025-09-05 16:29:12 -04:00
0357a41dd8 Implement spend_cpu_cycles in assembly
The compiler was unrolling it previously, so we're doing assembly now for consistency.
2025-09-05 15:16:49 -04:00
ffe7ab0a3e Update default in config.toml 2025-09-05 13:06:10 -04:00
ed3cf25936 Update stale documentation 2025-09-05 13:04:34 -04:00
e67e4aee17 Update /ok to serve dual health check/benchmarking role 2025-09-05 12:39:10 -04:00
761eaa552b Add -Wno-deprecated-literal-operator for clang 2025-09-05 11:39:04 -04:00
e846bc49f6 Set rapidjson docs + examples to off 2025-09-05 11:29:08 -04:00
72481be46d Consolidate into two static libs - one with assertions and one without 2025-09-05 11:22:04 -04:00
d04705624a Handle percent encoding 2025-09-04 20:47:58 -04:00
2278694f4f Separate out api url parser 2025-09-04 16:39:19 -04:00
55069c0c79 Add counters for /v1/{commit,status,version} 2025-09-04 15:49:54 -04:00
96aae52853 Basic implementation of /commit, /version, and /status
No precondition checking, persistence, or log scanning yet.
2025-09-04 15:40:17 -04:00
8b6736127a Add commit pipeline design 2025-09-04 13:40:03 -04:00
9272048108 Outline commit pipeline 2025-09-03 23:43:03 -04:00
b2ffe3bfab Refactor to use format for http responses 2025-09-03 22:45:59 -04:00
978861c430 Parse commit request 2025-09-03 21:53:04 -04:00
46edb7cd26 Allow listening on multiple interfaces 2025-09-03 16:09:16 -04:00
b8eb00e313 Wrap up metrics library 2025-09-03 15:43:26 -04:00
18b0a642bf Round out process collector 2025-09-03 15:34:55 -04:00
f0916d8269 Add process collector 2025-09-03 14:38:10 -04:00
2fa5b3e960 Instrument connections 2025-09-03 13:57:23 -04:00
6d480487da Use temp_arena for formatting instead of cached plan arena 2025-09-03 13:23:58 -04:00
54d06c654f Move PerThreadState to per-thread arenas 2025-09-03 13:16:35 -04:00
f067f4e85b Add weaseldb_metrics_memory_bytes 2025-09-03 13:06:34 -04:00
0ac4c31a53 Measure per metric in render scale bench 2025-09-03 12:51:49 -04:00
52b0cb3e6e Remove background thread from callback bench 2025-09-03 12:19:10 -04:00
76193f772c Tinker with benchmarks. Looking at render performance 2025-09-03 12:16:56 -04:00
0e4c526094 Fix realloc bug in static_format 2025-09-03 12:16:02 -04:00
f16cff9126 Don't copy static_text in render 2025-09-03 11:54:35 -04:00
13e4039ed6 Add performance note to header
Also improve implementation comments
2025-09-03 11:18:03 -04:00
17efcf318e Fix potential alignment issue and add more implementation comments 2025-09-03 11:12:01 -04:00
b3e48b904a Add some clarifying implementation comments 2025-09-03 11:01:01 -04:00
721f814785 Cache RenderPlan 2025-09-03 10:53:11 -04:00
8763daca8e Add arena to RenderPlan 2025-09-03 10:43:11 -04:00
a30020e960 Add Metric::registration_version
For cache invalidation
2025-09-03 10:18:19 -04:00
1cd34ef4a9 Fix memory leak 2025-09-02 17:59:51 -04:00
0583a63649 WIP separate phases. Passes but has a memory leak 2025-09-02 17:51:41 -04:00
08fa1f311d Use prometheus text format as LabelsKey representation 2025-09-02 15:54:31 -04:00
4f1dcc54d9 Replace some ArenaVector's with std::span 2025-09-02 15:43:42 -04:00
d43e6c2be5 Fix final placement new in metric.cpp 2025-09-02 15:31:57 -04:00
7f562f8116 Don't null-terminate 2025-09-02 15:28:32 -04:00
96eb8e8b0b Fix memory leaks 2025-09-02 15:25:38 -04:00