Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looper.logging 被 TraceEvent 覆盖,导致失效 #33

Open
bitterbee opened this issue Aug 6, 2018 · 0 comments
Open

Looper.logging 被 TraceEvent 覆盖,导致失效 #33

bitterbee opened this issue Aug 6, 2018 · 0 comments

Comments

@bitterbee
Copy link

org.chromium.base.TraceEvent

@CalledByNative

  | public static void setEnabled(boolean enabled) {
  | if (enabled) EarlyTraceEvent.disable();
  | // Only disable logging if Chromium enabled it originally, so as to not disrupt logging done
  | // by other applications
  | if (sEnabled != enabled) {
  | sEnabled = enabled;
  | // Android M+ systrace logs this on its own. Only log it if not writing to Android
  | // systrace.
  | if (sATraceEnabled) return;
  | ThreadUtils.getUiThreadLooper().setMessageLogging(
  | enabled ? LooperMonitorHolder.sInstance : null);
  | }
  | }

这里有覆盖。会导致 Looper.logging 设置失效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant