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
Andrey Skobtsov
4816abed28
Settings for measuring only particular metrics via perf events
2020-05-20 21:25:49 +03:00
Andrey Skobtsov
b6d6427748
Added file descriptors threshold
2020-05-19 21:22:30 +03:00
Andrey Skobtsov
483c78ba8f
Fixed warnings
2020-05-19 17:01:51 +03:00
Andrey Skobtsov
ef788758bf
Revert "Fixed current counter id check"
...
This reverts commit f98c53e8
2020-05-19 01:30:40 +03:00
Andrey Skobtsov
f98c53e8d8
Fixed current counter id check
2020-05-19 01:29:46 +03:00
Andrey Skobtsov
04a902ba68
Reverted switch case indentation (v2)
2020-05-19 01:27:19 +03:00
Andrey Skobtsov
b8d447297b
Reverted switch case indentation
2020-05-19 01:26:35 +03:00
Andrey Skobtsov
4103700aa6
Changed comments
2020-05-19 01:17:19 +03:00
Andrey Skobtsov
b0a3dc2b88
Moved static on top of thread_local
2020-05-19 01:15:04 +03:00
Andrey Skobtsov
e46cabe1d8
UInt64 numbers to track active counters instead of memory addresses
2020-05-19 01:13:55 +03:00
Andrey Skobtsov
979b357c05
Removed unused method
2020-05-19 00:46:46 +03:00
Andrey Skobtsov
901f546aee
Fixed 0 value of paranoid handling
2020-05-19 00:40:15 +03:00
Andrey Skobtsov
1edd29b3f8
Removed custom events as they don't work in an "increment" manner
2020-05-18 15:23:47 +03:00
Andrey Skobtsov
e7bea6e03a
Renamed events
2020-05-18 14:44:40 +03:00
Andrey Skobtsov
182e4f2c0b
Added running and enabled time for perf metrics
2020-05-18 13:40:01 +03:00
Andrey Skobtsov
40ad18be8e
Fixed compilation namespace issue and formatting
2020-05-17 16:56:17 +03:00
Andrey Skobtsov
cae41826a8
Merge branch 'master' into perf_events_metrics
...
# Conflicts:
# src/Common/ThreadProfileEvents.cpp
# src/Common/ThreadProfileEvents.h
# src/Common/ThreadStatus.cpp
# src/Common/ThreadStatus.h
2020-05-17 00:21:22 +03:00
Alexander Kazakov
e9baaa439b
Implementation of new system metrics provider (Procfs) ( #10544 )
...
* New metrics provider (Procfs) + Refactored TasksStatsCounters
* Trivial statless test that ProcFS is provided
* Trivial perf test for ProcfsMetricsProvider
Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
2020-05-01 21:47:41 +03:00
Andrey Skobtsov
0cf949f1b5
A bit of reformatting code
2020-04-23 21:50:12 +03:00
Andrey Skobtsov
30a87a8a58
perf events' values are 64 bit unsigned; so, read them instead of the signed ones
2020-04-23 21:50:12 +03:00
Andrey Skobtsov
30e19c3abb
Using the same file descriptors for all counters on the current thread (only one instance of PerfEventsCounters
can be active at a given time for a thread)
2020-04-23 21:50:12 +03:00
Andrey Skobtsov
396c9e4279
Fixed styling v2
2020-04-14 19:23:33 +03:00
Andrey Skobtsov
f4f43ee8ab
Replaced some warnings with infos as perf events measurements are optional
2020-04-14 16:58:32 +03:00
Andrey Skobtsov
578faa01a7
Handle CAP_SYS_ADMIN
permission accordingly
2020-04-14 16:55:46 +03:00
Andrey Skobtsov
2f708fec03
Fixed compilation issues
2020-04-14 15:17:59 +03:00