Commit e19cc773 authored by ppi@chromium.org's avatar ppi@chromium.org

Android: add logging when allocating and freeing renderer services.

This will help to investigate cases of Chrome running out of renderer
services on Android.

BUG=396568
R=yfriedman@chromium.org

Review URL: https://codereview.chromium.org/464403002

Cr-Commit-Position: refs/heads/master@{#289505}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289505 0039d316-1c4b-4281-b951-d872f2087c98
parent 825e10c5
......@@ -101,6 +101,8 @@ public class ChildProcessLauncher {
assert mChildProcessConnections[slot] == null;
mChildProcessConnections[slot] = new ChildProcessConnectionImpl(context, slot,
mInSandbox, deathCallback, mChildClass, chromiumLinkerParams);
Log.d(TAG, "Allocator allocated a connection, sandbox: " + mInSandbox +
", slot: " + slot);
return mChildProcessConnections[slot];
}
}
......@@ -118,6 +120,8 @@ public class ChildProcessLauncher {
mChildProcessConnections[slot] = null;
assert !mFreeConnectionIndices.contains(slot);
mFreeConnectionIndices.add(slot);
Log.d(TAG, "Allocator freed a connection, sandbox: " + mInSandbox +
", slot: " + slot);
}
}
}
......
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 to comment