Skip to content

Ticket Number :RDKEMW-3557:-Metrics for launchtime#19

Merged
madanagopalt merged 3 commits into
developfrom
topic/RDKEMW-3557
May 2, 2025
Merged

Ticket Number :RDKEMW-3557:-Metrics for launchtime#19
madanagopalt merged 3 commits into
developfrom
topic/RDKEMW-3557

Conversation

@trupthi1403
Copy link
Copy Markdown
Contributor

Reason for change: Added timestamps and created structure to store it
Test Procedure: timestamp logs must appear on wpeframework.log
Risks: low
Priority: P2

@trupthi1403 trupthi1403 requested a review from a team April 21, 2025 06:01
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 21, 2025

CLA assistant check
All committers have signed the CLA.

Reason for change: Added timestamps and created structure to store it
Test Procedure: timestamp logs must appear on wpeframework.log
Risks: low
Priority: P2
Comment thread include/jsc/JavaScriptContext.h Outdated

extern "C" JS_EXPORT void JSSynchronousGarbageCollectForDebugging(JSContextRef);

extern double getTimeInMilliSec();
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 don't want here

Comment thread include/jsc/JavaScriptContext.h Outdated
double executionEndTime=0.0;
double PlaybackStartTime=0.0;
};
extern performanceMetrics metrics;
Copy link
Copy Markdown
Contributor

@madanagopalt madanagopalt Apr 23, 2025

Choose a reason for hiding this comment

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

Keep mPerformanceMetrics member variable within Context storing this data.
Change structure name as PerformanceMetrics
We don't want extern and variable metrics

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 address comments

Comment thread src/jsc/JavaScriptContext.cpp Outdated
{
//execution start time
mPerformanceMetrics.executionStartTime = getTimeInMilliSec();
std::cout << "\n-----EXECUTION_START_TIME-----: " << std::fixed << std::setprecision(3) << mPerformanceMetrics.executionStartTime<< " ms\n";
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 don;t want this print

Comment thread src/jsc/JavaScriptContext.cpp Outdated

//execution end time
mPerformanceMetrics.executionEndTime = getTimeInMilliSec();
std::cout << "\n-----EXECUTION_END_TIME-----: " << std::fixed << std::setprecision(3) << mPerformanceMetrics.executionEndTime<< " ms\n";
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 don;t want this print

Comment thread src/TimeUtils.cpp Outdated
@@ -0,0 +1,9 @@
#include<chrono>
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.

Add license entries

Comment thread include/TimeUtils.h
@@ -0,0 +1,6 @@
#ifndef TIME_UTILS_H
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.

Add license entries

Comment thread include/jsc/JavaScriptContext.h Outdated
//for startTime
void setStartTime(double time){
mPerformanceMetrics.startTime=time;
std::cout << "\n-----START TIME-----: " << std::fixed << std::setprecision(3) << time << " ms\n";
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 don;t want this print

Comment thread include/jsc/JavaScriptContext.h Outdated
mPerformanceMetrics.playbackStartTime = time;
std::cout << "\n-----PLAYBACK START TIME FROM CPP-----: " << std::fixed << std::setprecision(3) << time << " ms\n";
double launchTime = mPerformanceMetrics.playbackStartTime-mPerformanceMetrics.startTime;
std::cout << "\n-----LAUNCH TIME FROM CPP-----: " << std::fixed << std::setprecision(3) << launchTime << " ms\n";
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 don;t want this print

Comment thread include/jsc/JavaScriptContext.h Outdated
//for playbackStartTime and launch Time calculation
void setPlaybackStartTime(double time) {
mPerformanceMetrics.playbackStartTime = time;
std::cout << "\n-----PLAYBACK START TIME FROM CPP-----: " << std::fixed << std::setprecision(3) << time << " ms\n";
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 don;t want this print

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. Add ticket number as part of PR

Reason for change: Aligned all collected timestamps and stored in structure
Test Procedure: Timestamp logs must come on wpeframework log.
Risks: low
Priority: P2
@trupthi1403
Copy link
Copy Markdown
Contributor Author

Commited with above required changes

madanagopalt
madanagopalt previously approved these changes Apr 29, 2025
Reason for change: Added timestamps and created structure to store it
Test Procedure: timestamp logs must appear on wpeframework.log
Risks: low
Priority: P2
@madanagopalt madanagopalt merged commit 81fff9c into develop May 2, 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.

4 participants