Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e8d2c00c
authored
Jan 12, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add trace to chunk fetches.
parent
f65a0935
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
library/src/main/java/com/google/android/exoplayer/chunk/Chunk.java
library/src/main/java/com/google/android/exoplayer/chunk/Chunk.java
View file @
e8d2c00c
...
@@ -24,6 +24,7 @@ import com.google.android.exoplayer.upstream.DataSpec;
...
@@ -24,6 +24,7 @@ import com.google.android.exoplayer.upstream.DataSpec;
import
com.google.android.exoplayer.upstream.Loader.Loadable
;
import
com.google.android.exoplayer.upstream.Loader.Loadable
;
import
com.google.android.exoplayer.upstream.NonBlockingInputStream
;
import
com.google.android.exoplayer.upstream.NonBlockingInputStream
;
import
com.google.android.exoplayer.util.Assertions
;
import
com.google.android.exoplayer.util.Assertions
;
import
com.google.android.exoplayer.util.TraceUtil
;
import
java.io.IOException
;
import
java.io.IOException
;
...
@@ -173,7 +174,12 @@ public abstract class Chunk implements Loadable {
...
@@ -173,7 +174,12 @@ public abstract class Chunk implements Loadable {
@Override
@Override
public
final
void
load
()
throws
IOException
,
InterruptedException
{
public
final
void
load
()
throws
IOException
,
InterruptedException
{
dataSourceStream
.
load
();
TraceUtil
.
beginSection
(
"chunkLoad"
);
try
{
dataSourceStream
.
load
();
}
finally
{
TraceUtil
.
endSection
();
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment