I can't see the LoadingTime record in the dashboard
Hi
I used android performance tuner 1.5.2 version
create custom Annotation and record LoadingGroup and LoadingTime
like this
// StartLoadingGroup
LoadingTimeMetadata groupMetadata = new LoadingTimeMetadata() {
state = LoadingTimeMetadata.LoadingState.FirstRun,
source = LoadingTimeMetadata.LoadingSource.UnknownSource,
};
var groupResult = Tuner?.StartLoadingGroup(groupMetadata, null);
// StartRecordingLoadingTime
LoadingTimeMetadata metadata = new LoadingTimeMetadata() {
state = LoadingTimeMetadata.LoadingState.FirstRun,
source = LoadingTimeMetadata.LoadingSource.UnknownSource,
};
Annotation annotation = new Annotation() {
PlatformInit = PhaseNameToEnum(phaseName)
};
var result = Tuner?.StartRecordingLoadingTime(metadata, annotation);
// StopRecordingLoadingTime
var stopErrorCode = Tuner?.StopRecordingLoadingTime(result.value);
// StopLoadingGroup
var stopErrorCode = Tuner.StopLoadingGroup(groupResult.value);
and since the release product, I can see the frame, but not the LoadingTime record in the dashboard
my guess is that tuningfork.proto is missing from the Unity Package, and that in order to make ProjectData.hasLoadingState true,
we need to modify the LoadingAnnotationIndex in tuningfork.proto and compile via protoc
tuningfork.proto's LoadingAnnotationIndex to make ProjectData.hasLoadingState true.
but for now, ProjectData.hasLoadingState is false.
Am I missing something?
Bump. Same issue for us.
Same issue for us