-
Notifications
You must be signed in to change notification settings - Fork 18
RDKPerf introduced in Rialto Server #488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 7 commits
fb75e4e
4974a1b
8b0ec4e
9dfc574
66d18c8
98c8280
858f6fc
5f8ed77
eeb74da
1789e36
6cf5551
2bad508
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,7 +27,7 @@ add_subdirectory(public) | |
| add_library( | ||
| RialtoCommon | ||
| STATIC | ||
|
|
||
| source/EventThread.cpp | ||
| source/LinuxUtils.cpp | ||
| source/Timer.cpp | ||
|
|
@@ -43,6 +43,7 @@ target_include_directories( | |
| RialtoCommon | ||
|
|
||
| PUBLIC | ||
|
|
||
| interface | ||
|
Comment on lines
45
to
46
|
||
| $<TARGET_PROPERTY:RialtoCommonPublic,INTERFACE_INCLUDE_DIRECTORIES> | ||
|
|
||
|
|
@@ -52,7 +53,8 @@ target_include_directories( | |
|
|
||
| target_link_libraries ( | ||
| RialtoCommon | ||
|
|
||
| PUBLIC | ||
| rdkperf | ||
| PRIVATE | ||
| RialtoLogging | ||
| ) | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -35,6 +35,7 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| #include "Utils.h" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| #include "WorkerThread.h" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| #include "tasks/generic/GenericPlayerTaskFactory.h" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| #include "rdk_perf.h" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| #include "rdk_perf.h" | |
| #if defined(__has_include) | |
| #if __has_include(<rdk_perf.h>) | |
| #include <rdk_perf.h> | |
| #define RIALTO_HAS_RDK_PERF 1 | |
| #else | |
| #define RIALTO_HAS_RDK_PERF 0 | |
| #endif | |
| #else | |
| #include <rdk_perf.h> | |
| #define RIALTO_HAS_RDK_PERF 1 | |
| #endif | |
| #if !RIALTO_HAS_RDK_PERF | |
| #ifndef RDK_PERF_EVENT_ON | |
| #define RDK_PERF_EVENT_ON(...) ((void)0) | |
| #endif | |
| #ifndef RDK_PERF_EVENT_OFF | |
| #define RDK_PERF_EVENT_OFF(...) ((void)0) | |
| #endif | |
| #ifndef RDK_PERF_START | |
| #define RDK_PERF_START(...) ((void)0) | |
| #endif | |
| #ifndef RDK_PERF_STOP | |
| #define RDK_PERF_STOP(...) ((void)0) | |
| #endif | |
| #ifndef RDK_PERF_START_TS | |
| #define RDK_PERF_START_TS(...) ((void)0) | |
| #endif | |
| #ifndef RDK_PERF_STOP_TS | |
| #define RDK_PERF_STOP_TS(...) ((void)0) | |
| #endif | |
| #endif |
Copilot
AI
Apr 27, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whitespace-only blank line introduced at the start of the function body. Please remove trailing whitespace to avoid noisy diffs / potential lint failures.
Copilot
AI
Apr 27, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perf is only created for RAII side-effects and is otherwise unused; with -Wall -Werror this is likely to trigger -Wunused-variable in some build configurations. Please mark it as intentionally unused (e.g. [[maybe_unused]] or a project macro) to avoid build failures.
| RDKPerf perf(__FUNCTION__); | |
| [[maybe_unused]] RDKPerf perf(__FUNCTION__); |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -23,6 +23,7 @@ | |||||||||||||||||||||||||||||||||
| #include "IApplicationSessionServer.h" | ||||||||||||||||||||||||||||||||||
| #include "IGstInitialiser.h" | ||||||||||||||||||||||||||||||||||
| #include "RialtoServerLogging.h" | ||||||||||||||||||||||||||||||||||
| #include "rdk_perf.h" | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
| #include "rdk_perf.h" | |
| #if defined(__has_include) | |
| #if __has_include(<rdk_perf.h>) | |
| #include <rdk_perf.h> | |
| #define RIALTO_HAS_RDK_PERF 1 | |
| #endif | |
| #endif | |
| #ifndef RIALTO_HAS_RDK_PERF | |
| class RDKPerf | |
| { | |
| public: | |
| explicit RDKPerf(const char *) {} | |
| }; | |
| #endif |
Copilot
AI
Apr 24, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RDKPerf perf(__FUNCTION__); is never referenced. With repo-wide -Wall -Werror enabled, this is likely to fail the build due to -Wunused-variable. If the object is meant to exist only for RAII timing, mark it [[maybe_unused]] (or otherwise explicitly suppress the unused-variable warning) so the build remains warning-free.
| RDKPerf perf(__FUNCTION__); | |
| [[maybe_unused]] RDKPerf perf(__FUNCTION__); |
Copilot
AI
Apr 27, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are whitespace-only lines introduced here (blank lines containing spaces / trailing whitespace). Please remove the trailing whitespace to avoid formatting/lint issues and noisy diffs.
| appSessionServer->startService(); | |
| appSessionServer->startService(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whitespace-only blank line introduced here (line contains spaces). Please remove trailing whitespace to avoid noisy diffs / potential lint failures.