Skip to content

RDKEMW-3105 : Add ability to show network connections with details#18

Merged
vjain008 merged 1 commit into
developfrom
topic/RDKEMW-3105
May 6, 2025
Merged

RDKEMW-3105 : Add ability to show network connections with details#18
vjain008 merged 1 commit into
developfrom
topic/RDKEMW-3105

Conversation

@gurpreet319
Copy link
Copy Markdown
Contributor

@gurpreet319 gurpreet319 commented Apr 17, 2025

Reason for change: Added Support for network metrics
Test Procedure: build should be successful.
Risks: low
Priority: P2

@gurpreet319 gurpreet319 requested a review from a team April 17, 2025 14:23
Comment thread src/jsc/JavaScriptUtils.cpp Outdated
{ }

void setNetworkMetricsListener(NetworkMetricsListener* listener)
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add it in rtCore itself and not here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment thread include/jsc/JavaScriptContext.h Outdated
#endif
JSContextGroupRef mContextGroup;
JSGlobalContextRef mContext;
rtMapObject* mObjectMap;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please have valid name like mNetworkMetricsData

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

if (mMetricsListener)
{
rtLogWarn("metriclistener");
NetworkMetrics *metrics = new NetworkMetrics();
Copy link
Copy Markdown
Contributor

@madanagopalt madanagopalt Apr 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove this object after calling onMetricsData

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment thread src/jsc/JavaScriptUtils.cpp Outdated
}
}

rtLogWarn("Array object populated successfully.");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this print

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment thread src/jsc/JavaScriptUtils.cpp Outdated

rtValue keys;
if (map->Get("allKeys", &keys) != RT_OK) {
rtLogWarn("Could not retrieve keys for the object map.");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don;t have any prints telling map etc. Metion like network metrics data etc

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link
Copy Markdown
Contributor

@madanagopalt madanagopalt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kindly look at comments

@gurpreet319 gurpreet319 force-pushed the topic/RDKEMW-3105 branch 3 times, most recently from 63cb2b5 to 4d21671 Compare April 30, 2025 12:50
Comment thread include/jsc/JavaScriptContext.h Outdated
Comment thread src/jsc/JavaScriptContext.cpp Outdated
Copy link
Copy Markdown
Contributor

@madanagopalt madanagopalt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kindly look at comments

@gurpreet319 gurpreet319 force-pushed the topic/RDKEMW-3105 branch 4 times, most recently from 164e88a to fb52e48 Compare May 5, 2025 07:45
madanagopalt
madanagopalt previously approved these changes May 5, 2025
Reason for change: Added support for network metrics
Test Procedure: build should be successful.
Risks: low
Priority: P2
@vjain008 vjain008 merged commit 7c77860 into develop May 6, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants