Conversation
|
Pull request must be merged with a description containing the required fields, Summary: If there is no jira releated to this change, please put 'Jira: NO-JIRA'. Description can be changed by editing the top comment on your pull request and making a new commit. |
|
common/source/Profiler.cpp:98:0: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] |
There was a problem hiding this comment.
Pull request overview
This pull request adds profiling functionality to the Rialto Server to track performance metrics and pipeline events. The implementation includes a generic profiling interface in the common module and a GStreamer-specific profiler that integrates with the media player pipeline. The profiler records timestamped events at various stages of media playback and can be enabled via environment variable.
Changes:
- Added core profiling infrastructure with IProfiler interface and Profiler implementation
- Integrated GstProfiler into the media player pipeline to track key events
- Added unit tests and mocks for the profiling functionality
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 25 comments.
Show a summary per file
| File | Description |
|---|---|
| common/interface/IProfiler.h | Defines the profiler interface with methods for recording, finding, logging, and dumping profiling records |
| common/include/Profiler.h | Declares the concrete Profiler class implementation with internal Record structure |
| common/source/Profiler.cpp | Implements the profiler with thread-safe record storage, environment-based enabling, and file dumping |
| common/CMakeLists.txt | Adds Profiler.cpp to the build configuration |
| media/server/gstplayer/include/GstProfiler.h | Defines GStreamer-specific profiler wrapper for pipeline profiling |
| media/server/gstplayer/include/GenericPlayerContext.h | Adds GstProfiler instance to player context |
| media/server/gstplayer/source/GstProfiler.cpp | Implements GStreamer profiler with pad probe callbacks and element filtering |
| media/server/gstplayer/source/GstGenericPlayer.cpp | Integrates profiler into pipeline lifecycle (creation, termination, segment handling) |
| media/server/gstplayer/source/tasks/generic/HandleBusMessage.cpp | Records pipeline state changes |
| media/server/gstplayer/source/tasks/generic/FinishSetupSource.cpp | Records when all sources are attached |
| media/server/gstplayer/source/tasks/generic/AttachSource.cpp | Records AppSrc element creation |
| media/server/gstplayer/source/tasks/generic/DeepElementAdded.cpp | Schedules profiling for dynamically added GStreamer elements |
| media/server/gstplayer/CMakeLists.txt | Adds GstProfiler.cpp to build and includes common headers |
| tests/unittests/common/unittests/ProfilerTests.cpp | Unit tests for core profiler functionality |
| tests/unittests/common/unittests/CMakeLists.txt | Adds ProfilerTests.cpp to test build |
| tests/unittests/common/mocks/ProfilerMock.h | Mock implementation of IProfiler for testing |
| tests/unittests/common/mocks/ProfilerFactoryMock.h | Mock implementation of IProfilerFactory for testing |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Coverity Issue - Uncaught exceptionAn exception of type "std::bad_optional_access" is thrown but the exception specification "/implicit/noexcept" doesn't allow it to be thrown. This will result in a call to terminate(). Medium Impact, CWE-248 Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
|
Hi @smudri85 : The blackduck issue is not a problem but all new code files should have proper headers please.
|
|
b'## WARNING: A Blackduck scan failure has been waived A prior failure has been upvoted
|
95cc046 to
43eb771
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 19 out of 19 changed files in this pull request and generated 10 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
43eb771 to
e476ba7
Compare
e476ba7 to
5862d6c
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 19 out of 19 changed files in this pull request and generated 8 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3934f05 to
761b259
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 19 out of 19 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
761b259 to
3d607f2
Compare
|
Coverage statistics of your commit: |
Summary: Add profiling to Rialto Server. Type: Feature Test Plan: UT/CT, Fullstack Jira: RDKEMW-11764
Summary: Add profiling to Rialto Server. Type: Feature Test Plan: UT/CT, Fullstack Jira: RDKEMW-117641
Summary: Add profiling to Rialto Server. Type: Feature Test Plan: UT/CT, Fullstack Jira: RDKEMW-11764
Summary: Add profiling to Rialto Server. Type: Feature Test Plan: UT/CT, Fullstack Jira: RDKEMW-11764
Summary: Add profiling to Rialto Server. Type: Feature Test Plan: UT/CT, Fullstack Jira: RDKEMW-11764
Summary: Add profiling to Rialto Server. Type: Feature Test Plan: UT/CT, Fullstack Jira: RDKEMW-11764
Summary: Add profiling to Rialto Server. Type: Feature Test Plan: UT/CT, Fullstack Jira: RDKEMW-11764
Summary: Add profiling to Rialto Server. Type: Feature Test Plan: UT/CT, Fullstack Jira: RDKEMW-11764
3d607f2 to
024c46d
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 23 out of 23 changed files in this pull request and generated 11 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tests/unittests/media/server/gstplayer/profiler/GstProfilerTests.cpp
Outdated
Show resolved
Hide resolved
tests/unittests/media/server/gstplayer/profiler/GstProfilerTests.cpp
Outdated
Show resolved
Hide resolved
tests/unittests/media/server/gstplayer/profiler/GstProfilerTests.cpp
Outdated
Show resolved
Hide resolved
|
Coverage statistics of your commit: |
|
Coverage statistics of your commit: |
0220ef0 to
d79ac19
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 27 out of 27 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Coverage statistics of your commit: |
|
b'## WARNING: A Blackduck scan failure has been waived A prior failure has been upvoted
|
d79ac19 to
ff86fca
Compare
|
Coverage statistics of your commit: |
Summary: Add profiling to Rialto Server.
Type: Feature
Test Plan: UT/CT, Fullstack
Jira: RDKEMW-11764