Commit graph

38 commits

Author SHA1 Message Date
6fc476f1f0 Support building without Boost.Stacktrace 2025-01-26 14:45:43 +03:00
2c3565df61 32-bit compilation fixes:
* Use uint64_t instead of size_t as hash return value

 * Expect alignof(uint64_t) <= 8 instead of == 8
2025-01-25 20:35:37 +03:00
2d2362d85c More util::uuid functions: create from string, check for/convert to RFC 4122 2023-08-23 00:04:05 +03:00
79e90fb03c Fix util::dynamic_bitset operations 2023-08-22 14:52:28 +03:00
981629cb74 Add util::dynamic_bitset 2023-08-19 15:21:08 +03:00
f6377045c9 Add red color to stderr logging 2023-08-06 19:00:34 +03:00
85d7a0ca33 Huge refactor: use util::exception everywhere instead of std exceptions 2023-08-06 18:33:07 +03:00
bf90a8edd9 Silense clang deprecated warning in unicode converters 2023-07-18 15:33:18 +03:00
42f986ce4a Add util::executable_path() 2023-07-14 20:54:41 +03:00
5895c01c4c Make util::not_implemented throw a specific exception type instead of runtime_error 2023-05-06 12:55:06 +03:00
546db9fb98 Add util::type_name(std::type_index) 2023-04-19 19:01:06 +03:00
fdcf0d5b88 MacOS fixes 2023-01-16 23:53:34 +03:00
098c3e84b1 Add common directories to file dialog 2023-01-05 19:30:00 +03:00
7d55b374e4 Add util::open_url 2022-12-18 18:14:43 +03:00
36123f0a7d Move profiler to a separate library to break io <- util dependence 2022-06-09 11:23:53 +03:00
50e2ebd362 Fix utf8 parsing 2022-04-01 17:36:27 +03:00
fca22c93e2 Add util::type_name 2021-07-21 22:08:13 +03:00
17722a1990 Report profiler children in order of first call 2021-06-04 18:10:43 +03:00
31c27ccfd3 Support adding externally-measured profiling data to util::profiler 2021-06-04 18:01:32 +03:00
f327cc4315 Add special case for single-call functions in profiler::dump 2021-06-04 14:26:16 +03:00
0a367b8ab4 Change profiler time reporting format 2021-03-12 14:43:30 +03:00
e266bb476e Fix unused function warning for release build 2021-03-03 19:46:24 +03:00
7520901f30 Add utf8 iterator & range 2021-02-23 20:13:33 +03:00
50cc785998 Get elapsed time before locking mutex in profiler 2020-12-16 11:05:29 +03:00
eff7be5653 Redesign profiler: hierarchical, thread-aware, dump into log::info upon request 2020-12-16 11:05:29 +03:00
abd40bfa4d Make util::profiler use the logging system 2020-11-29 12:30:02 +03:00
a1cf646633 Rename movable_function -> function & better SSO 2020-11-22 12:40:26 +03:00
0d64e86ffe Add async library & move stuff from util to async 2020-11-21 16:27:38 +03:00
fb9f1d8f30 Fix threadpool name use-after-free bug 2020-11-21 15:31:25 +03:00
240d26663b Add deferred event support to executors 2020-11-21 15:16:47 +03:00
9fa32c2dd1 Add util::event_loop executor 2020-11-19 23:50:28 +03:00
daf1a3c5f4 Make threadpool implement executor interface 2020-11-19 23:50:23 +03:00
7b9e042842 Fix threadpool::wait - wait for finished tasks as well, not just empty task queue 2020-09-30 16:20:48 +03:00
1ab980f0d2 Threadpool requires having a name 2020-09-21 20:22:22 +03:00
c7dba5eef2 Add pedantic warnings to CMake & fix all warnings 2020-09-13 13:03:31 +03:00
2d6b947809 Move pixmap from util to gfx 2020-08-30 08:44:53 +03:00
6225f89f88 Uniformize code style & do a few code rearrangements 2020-08-27 16:49:46 +03:00
549f2ada41 Add util, geom, cg, pcg & gfx libs 2020-08-27 13:36:16 +03:00