You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.
Briefly summarize your issue:
Base on issue #62
Sure, the best way to profile the rendering time is by profiling the time between TemplateRuntime::handleRenderPlayerInfoDirective and GUIClient::executeHandleRenderComplete. Alternatively, you can use MetricsRecorder.
Please open the ticket if you have any further questions. Thanks!
We want to know about how to profile several things
1.How to profile APL document download time from user say uttrance?
2.Browser rendering performance
3.How to use MetricsRecorder to record it?
Does the render time is about 17.728s on RPi4.
It doesn't make sense why it take too long time
2020-12-09 05:45:10.511 [ c] 5 TemplateRuntime:handleRenderPlayerInfoDirective
2020-12-09 05:45:28.239 [ 2] 3 GUILogBridge:GUILog:component=WSClient:message sent, type: renderComplete
Provide the steps to reproduce the issue, if applicable:
Run smart screen sdk v2.4 on RPi4.
Say ‘Alexa, play music’. Play music the first time.
Say ‘Alexa, stop’.
Wait 5 minutes.
Say ‘Alexa, play music’. Play music the second time.
Record the time interval between audio and playcard.
Could we measure from Thinking to TemplateRuntime:handleRenderPlayerInfoDirective about 1.38s for APL download time ?
2020-12-09 05:45:09.131 [ 17] 5 TemplateRuntime:onDialogUXStateChanged:state=THINKING
2020-12-09 05:45:10.511 [ c] 5 TemplateRuntime:handleRenderPlayerInfoDirective
2020-12-09 05:45:28.239 [ 2] 3 GUILogBridge:GUILog:component=WSClient:message sent, type: renderComplete
Hi @yuan0258 ,
It is possible to enable metrics for tracking APL performance within the Smart Screen SDK, however by default this functionality is not enabled. If you are primarily interested in APL metrics then it should be possible to add this by making a few small modifications (note that this metrics sink is provided as a sample for testing purposes only):
Rebuild and reinstall the AVS Device SDK with the -DMETRICS=ONflag
Modify the Smart Screen SDK code to use the Sample metrics sink
Add the following includes to SmartScreenClient.cpp
std::string metricsFilePath{"/tmp/metrics.dmp"};
std::unique_ptr<alexaClientSDK::metrics::implementations::SampleMetricSink> fileSink{
new alexaClientSDK::metrics::implementations::SampleMetricSink(metricsFilePath)};
auto metricRecorder = alexaClientSDK::metrics::implementations::MetricRecorder::createMetricRecorderInterface(std::move(fileSink));
Rebuild the Smart Screen SDK adding the metrics and APL metrics flags -DMETRICS=ON -DUSE_APL_TELEMETRY=ON
When running the SampleApp, metrics can be found in the path provided above i.e. /tmp/metrics.dmp
IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.
Briefly summarize your issue:
Base on issue #62
Sure, the best way to profile the rendering time is by profiling the time between
TemplateRuntime::handleRenderPlayerInfoDirective
andGUIClient::executeHandleRenderComplete
. Alternatively, you can use MetricsRecorder.Please open the ticket if you have any further questions. Thanks!
Originally posted by @VaruPan in #62 (comment)
We want to know about how to profile several things
1.How to profile APL document download time from user say uttrance?
2.Browser rendering performance
3.How to use MetricsRecorder to record it?
What is the expected behavior?
Browser rending UI fast as soon as possible
What behavior are you observing?
Browser rending UI to slow in first time.
APL document for browser rendering time too long
Log:https://github.com/alexa/alexa-smart-screen-sdk/files/5663979/sssdk240_playmusic_after.zip
Does the render time is about 17.728s on RPi4.
It doesn't make sense why it take too long time
2020-12-09 05:45:10.511 [ c] 5 TemplateRuntime:handleRenderPlayerInfoDirective
2020-12-09 05:45:28.239 [ 2] 3 GUILogBridge:GUILog:component=WSClient:message sent, type: renderComplete
Provide the steps to reproduce the issue, if applicable:
Run smart screen sdk v2.4 on RPi4.
Say ‘Alexa, play music’. Play music the first time.
Say ‘Alexa, stop’.
Wait 5 minutes.
Say ‘Alexa, play music’. Play music the second time.
Record the time interval between audio and playcard.
Tell us about your environment:
What version of the AVS Device SDK are you using?
Tell us what hardware you're using:
Tell us about your OS (Type & version):
Have you tried the same use case with AVS Device SDK SampleApp?
The text was updated successfully, but these errors were encountered: