Skip to content

Commit

Permalink
build(android): resolve build error
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwcg committed Oct 30, 2024
1 parent 0c2a5dd commit f139b8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,11 @@ void OnFirstPaintEnd(JNIEnv* j_env, jobject j_object, jint j_scope_id, jlong tim
return;
}
auto entry = scope->GetPerformance()->PerformanceNavigation("hippyInit");
entry->SetHippyRunApplicationEnd(dom_manager->GetDomStartTimePoint(j_root_id));
entry->SetHippyDomStart(dom_manager->GetDomStartTimePoint(j_root_id));
entry->SetHippyDomEnd(dom_manager->GetDomEndTimePoint(j_root_id));
entry->SetHippyFirstFrameStart(dom_manager->GetDomEndTimePoint(j_root_id));
auto rootId = footstone::checked_numeric_cast<jint, uint32_t>(j_root_id);
entry->SetHippyRunApplicationEnd(dom_manager->GetDomStartTimePoint(rootId));
entry->SetHippyDomStart(dom_manager->GetDomStartTimePoint(rootId));
entry->SetHippyDomEnd(dom_manager->GetDomEndTimePoint(rootId));
entry->SetHippyFirstFrameStart(dom_manager->GetDomEndTimePoint(rootId));
entry->SetHippyFirstFrameEnd(footstone::TimePoint::FromEpochDelta(footstone::TimeDelta::FromMilliseconds(time)));
};
runner->PostTask(std::move(task));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ protected void onDestroyEngine() {

@Override
public void onFirstPaint(int rootId) {
mEngineContext.getJsDriver().recordFirstPaintEndTime(System.currentTimeMillis(), rootId));
mEngineContext.getJsDriver().recordFirstPaintEndTime(System.currentTimeMillis(), rootId);
mEngineContext.getMonitor().addPoint(TimeMonitor.MONITOR_GROUP_PAINT,
TimeMonitor.MONITOR_POINT_FIRST_CONTENTFUL_PAINT);
mGlobalConfigs.getEngineMonitorAdapter().onFirstPaintCompleted(mEngineContext.getComponentName());
Expand Down

0 comments on commit f139b8d

Please sign in to comment.