Android systrace not showing my app's custom sections
up vote
0
down vote
favorite
Trying to profile lags when scrolling in RecyclerView using systrace:
python systrace.py -o ~/tmp/newtrace.html -app=<my package>
But there is no entry for custom trace sections.
I'm tracing using following code
override fun onCreateViewHolder(parent: ViewGroup): RecyclerView.ViewHolder
trace(sectionName = "GalleryDelegate.onCreateViewHolder")
val view = layoutInflater.inflate(R.layout.item_upload, parent, false)
return ProfileMediaHolder(view, delegate)
override fun onBindViewHolder(items: List<ProfileDataEntry>, position: Int, holder: RecyclerView.ViewHolder, payloads: MutableList<Any>)
trace(sectionName = "GalleryDelegate.onBindViewHolder")
val item = items[position] as ProfileDataEntry.MediaItem
val castedHolder = holder as ProfileMediaHolder
when (item)
is ProfileDataEntry.MediaItem.Item ->
castedHolder.bind(item.value)
is ProfileDataEntry.MediaItem.Placeholder ->
castedHolder.bind(item.type)
android performance systrace
add a comment |
up vote
0
down vote
favorite
Trying to profile lags when scrolling in RecyclerView using systrace:
python systrace.py -o ~/tmp/newtrace.html -app=<my package>
But there is no entry for custom trace sections.
I'm tracing using following code
override fun onCreateViewHolder(parent: ViewGroup): RecyclerView.ViewHolder
trace(sectionName = "GalleryDelegate.onCreateViewHolder")
val view = layoutInflater.inflate(R.layout.item_upload, parent, false)
return ProfileMediaHolder(view, delegate)
override fun onBindViewHolder(items: List<ProfileDataEntry>, position: Int, holder: RecyclerView.ViewHolder, payloads: MutableList<Any>)
trace(sectionName = "GalleryDelegate.onBindViewHolder")
val item = items[position] as ProfileDataEntry.MediaItem
val castedHolder = holder as ProfileMediaHolder
when (item)
is ProfileDataEntry.MediaItem.Item ->
castedHolder.bind(item.value)
is ProfileDataEntry.MediaItem.Placeholder ->
castedHolder.bind(item.type)
android performance systrace
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Trying to profile lags when scrolling in RecyclerView using systrace:
python systrace.py -o ~/tmp/newtrace.html -app=<my package>
But there is no entry for custom trace sections.
I'm tracing using following code
override fun onCreateViewHolder(parent: ViewGroup): RecyclerView.ViewHolder
trace(sectionName = "GalleryDelegate.onCreateViewHolder")
val view = layoutInflater.inflate(R.layout.item_upload, parent, false)
return ProfileMediaHolder(view, delegate)
override fun onBindViewHolder(items: List<ProfileDataEntry>, position: Int, holder: RecyclerView.ViewHolder, payloads: MutableList<Any>)
trace(sectionName = "GalleryDelegate.onBindViewHolder")
val item = items[position] as ProfileDataEntry.MediaItem
val castedHolder = holder as ProfileMediaHolder
when (item)
is ProfileDataEntry.MediaItem.Item ->
castedHolder.bind(item.value)
is ProfileDataEntry.MediaItem.Placeholder ->
castedHolder.bind(item.type)
android performance systrace
Trying to profile lags when scrolling in RecyclerView using systrace:
python systrace.py -o ~/tmp/newtrace.html -app=<my package>
But there is no entry for custom trace sections.
I'm tracing using following code
override fun onCreateViewHolder(parent: ViewGroup): RecyclerView.ViewHolder
trace(sectionName = "GalleryDelegate.onCreateViewHolder")
val view = layoutInflater.inflate(R.layout.item_upload, parent, false)
return ProfileMediaHolder(view, delegate)
override fun onBindViewHolder(items: List<ProfileDataEntry>, position: Int, holder: RecyclerView.ViewHolder, payloads: MutableList<Any>)
trace(sectionName = "GalleryDelegate.onBindViewHolder")
val item = items[position] as ProfileDataEntry.MediaItem
val castedHolder = holder as ProfileMediaHolder
when (item)
is ProfileDataEntry.MediaItem.Item ->
castedHolder.bind(item.value)
is ProfileDataEntry.MediaItem.Placeholder ->
castedHolder.bind(item.type)
android performance systrace
android performance systrace
asked Nov 9 at 13:59
Konstantin Berkow
538821
538821
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
draft saved
draft discarded
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53227122%2fandroid-systrace-not-showing-my-apps-custom-sections%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password