mirror of
https://github.com/samsonjs/media.git
synced 2026-03-29 10:05:48 +00:00
Add trace to chunk fetches.
This commit is contained in:
parent
f65a093596
commit
e8d2c00cf7
1 changed files with 7 additions and 1 deletions
|
|
@ -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.NonBlockingInputStream;
|
||||
import com.google.android.exoplayer.util.Assertions;
|
||||
import com.google.android.exoplayer.util.TraceUtil;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
|
@ -173,7 +174,12 @@ public abstract class Chunk implements Loadable {
|
|||
|
||||
@Override
|
||||
public final void load() throws IOException, InterruptedException {
|
||||
dataSourceStream.load();
|
||||
TraceUtil.beginSection("chunkLoad");
|
||||
try {
|
||||
dataSourceStream.load();
|
||||
} finally {
|
||||
TraceUtil.endSection();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue