/** * Send SIGNAL_USR1 to all processes. This will generate large (5mb) profiling reports in * data/misc, so use with care. */ private void signalPersistentProcesses() { try { mAm.signalPersistentProcesses(Process.SIGNAL_USR1); synchronized (this) { wait(2000); } } catch (RemoteException e) { System.err.println("** Failed talking with activity manager!"); } catch (InterruptedException e) { } }