Azat Khuzhin
4e76629aaf
Fixes for -Wshorten-64-to-32
...
- lots of static_cast
- add safe_cast
- types adjustments
- config
- IStorage::read/watch
- ...
- some TODO's (to convert types in future)
P.S. That was quite a journey...
v2: fixes after rebase
v3: fix conflicts after #42308 merged
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:19 +02:00
Alexander Tokmakov
4175f8cde6
abort instead of __builtin_unreachable in debug builds
2022-10-07 21:49:08 +02:00
Alexey Milovidov
fa62c7e982
Fix half of trash
2022-09-10 04:08:16 +02:00
Alexey Milovidov
74e1f4dc61
Fix clang-tidy
2022-08-20 17:09:20 +02:00
Robert Schulze
1a0b5f33b3
More consistent use of platform macros
...
cmake/target.cmake defines macros for the supported platforms, this
commit changes predefined system macros to our own macros.
__linux__ --> OS_LINUX
__APPLE__ --> OS_DARWIN
__FreeBSD__ --> OS_FREEBSD
2022-06-10 10:22:31 +02:00
Robert Schulze
590a01d39d
Linux build fix
2022-05-04 11:42:23 +02:00
Azat Khuzhin
6df54611a9
Log which taskstats provider is in use
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
v2: add missing __builtin_unreachable() for gcc built [1]
[1]: https://s3.amazonaws.com/clickhouse-builds/36351/99e72a960325cc1fb3cd3d6a1b56cf2b1cc2d733/binary_gcc/build_log.log
(cherry picked from commit 2be022cb56
)
2022-04-25 07:56:54 +03:00
Alexey Milovidov
74bb6349c2
Revert "Strict taskstats parser"
2022-04-25 01:15:08 +03:00
Azat Khuzhin
2be022cb56
Log which taskstats provider is in use
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
v2: add missing __builtin_unreachable() for gcc built [1]
[1]: https://s3.amazonaws.com/clickhouse-builds/36351/99e72a960325cc1fb3cd3d6a1b56cf2b1cc2d733/binary_gcc/build_log.log
2022-04-20 21:39:26 +03:00
Maksim Kita
ed74a464bd
Fixed tests
2022-03-16 11:21:18 +00:00
Maksim Kita
e7772ed434
Fix clang-tidy warnings in Common folder
2022-03-14 18:17:35 +00:00
Azat Khuzhin
baf14444e6
Cleanup ProfileEvents and CurrentMetrics
2021-11-10 21:15:27 +03:00
Alexey Milovidov
fe6b7c77c7
Rename "common" to "base"
2021-10-02 10:13:14 +03:00
Yuriy Chernyshov
5a2bd0b6ba
Enable thread_local in Arcadia build
2021-05-12 13:33:38 +03:00
Alexey Milovidov
4092916db6
Useless changes
2021-02-06 14:56:10 +03:00
Alexey Milovidov
fb3d235e84
Do not use strerror
2020-12-17 21:25:12 +03:00
Alexander Tokmakov
5cdfcfb307
remove other stringstreams
2020-11-09 22:12:44 +03:00
Alexey Milovidov
8b8383d375
Fix error
2020-11-07 19:08:19 +03:00
Alexey Milovidov
fd84d16387
Fix "server failed to start" error
2020-11-07 03:14:53 +03:00
Alexander Kuzmenkov
5a662ca48c
Add perf metric for NUMA-local memory access
2020-07-17 20:10:59 +03:00
Alexander Kuzmenkov
aa8461e996
Update ThreadProfileEvents.cpp
2020-06-30 10:47:19 +03:00
Alexander Kuzmenkov
1d838b7b3a
Update ThreadProfileEvents.cpp
2020-06-30 09:56:11 +03:00
Alexander Kuzmenkov
877c10f5fa
Update ThreadProfileEvents.cpp
2020-06-29 17:13:16 +03:00
Alexander Kuzmenkov
9b9030caad
Update ThreadProfileEvents.cpp
2020-06-29 15:57:36 +03:00
Alexander Kuzmenkov
af8d62bbcb
Add TLB misses perf counters.
2020-06-29 15:48:18 +03:00
Alexander Kuzmenkov
a8db0b40d0
add page fault perf events
2020-06-25 23:42:31 +03:00
Alexander Kuzmenkov
5523444d91
cleanup
2020-06-05 15:53:47 +03:00
Alexander Kuzmenkov
377da4656d
cleanup
2020-06-04 18:51:34 +03:00
Alexander Kuzmenkov
60920c3077
let's be optimistic, it will build eventually
2020-06-03 16:44:36 +03:00
Alexander Kuzmenkov
eca69d1a56
please build already
2020-06-03 14:25:56 +03:00
Alexander Kuzmenkov
9ae46722cb
build
2020-06-03 11:48:26 +03:00
Alexander Kuzmenkov
609780c153
build fix
2020-06-02 19:52:50 +03:00
Alexander Kuzmenkov
d9f00a8f48
fix build
2020-06-02 12:58:48 +03:00
Alexander Kuzmenkov
aa1f552a8f
build fixes
2020-06-01 20:13:54 +03:00
Alexander Kuzmenkov
6e3bbf83e3
thread-local perf events
2020-05-29 16:04:32 +03:00
Alexander Kuzmenkov
40b704fb61
remove some C
2020-05-28 15:03:22 +03:00
Alexander Kuzmenkov
3c18344b06
account for counter multiplexing
2020-05-28 13:48:34 +03:00
Alexander Kuzmenkov
4e566c3570
support new logging functions
2020-05-27 17:16:34 +03:00
Andrey Skobtsov
806d2c9838
1 or 4 spaces in example values
2020-05-22 15:30:02 +03:00
Andrey Skobtsov
93d8e8c404
Removed perf page faults as they already exist in rusage
2020-05-22 14:09:14 +03:00
Andrey Skobtsov
e3b756e65f
Added cpu-clock
to the list of supported events as it is included in perf and can be disabled if needed
2020-05-21 23:40:47 +03:00
Andrey Skobtsov
5217fd7952
Renamed counters_id
to latest_counters_id
to be more specific about what this variable holds
2020-05-21 23:27:33 +03:00
Andrey Skobtsov
713173a3a5
More precise number of total events
2020-05-21 23:21:42 +03:00
Andrey Skobtsov
72e5545c51
Logging warnings instead of infos and always as the user can select
...
what metrics he wants to measure and perf measurements will be disabled by default
2020-05-21 23:20:55 +03:00
Andrey Skobtsov
bf5c7c4411
Logging perf event settings name when event is not supported
2020-05-21 23:11:19 +03:00
Andrey Skobtsov
d00609cb70
Validating file descriptors for external modification
2020-05-21 17:14:01 +03:00
Andrey Skobtsov
8363ccb9b7
Fixed naming for lambda
2020-05-21 00:03:08 +03:00
Andrey Skobtsov
a329a6a86a
Fixed compilation on non linux devices
2020-05-20 21:54:07 +03:00
Andrey Skobtsov
4151cf7ac8
Removed useless comment
2020-05-20 21:37:16 +03:00
Andrey Skobtsov
97043e588f
Space
2020-05-20 21:30:09 +03:00