Commit e8d2c00c by Oliver Woodman

Add trace to chunk fetches.

parent f65a0935
...@@ -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();
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment