You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// mCpu.elapsed() is expensive, so don't call it every loop
1950
+
if ((n & 127) == 1) {
1951
+
longlong elapsed = mCpu.elapsed();
1952
+
if (elapsed >= DEBUG_CPU_USAGE * 1000000000LL) {
1953
+
double perLoop = elapsed / (double) n;
1954
+
double perLoop100 = perLoop * 0.01;
1955
+
double mean = stats.mean();
1956
+
double stddev = stats.stddev();
1957
+
double minimum = stats.minimum();
1958
+
double maximum = stats.maximum();
1959
+
mCpu.resetStatistics();
1960
+
ALOGI("CPU usage over past %.1f secs (%u mixer loops at %.1f mean ms per loop):\n us per mix loop: mean=%.0f stddev=%.0f min=%.0f max=%.0f\n %% of wall: mean=%.1f stddev=%.1f min=%.1f max=%.1f",
// cpu.elapsed() is expensive, so don't call it every loop
1966
-
if ((n & 127) == 1) {
1967
-
longlong elapsed = cpu.elapsed();
1968
-
if (elapsed >= DEBUG_CPU_USAGE * 1000000000LL) {
1969
-
double perLoop = elapsed / (double) n;
1970
-
double perLoop100 = perLoop * 0.01;
1971
-
double mean = stats.mean();
1972
-
double stddev = stats.stddev();
1973
-
double minimum = stats.minimum();
1974
-
double maximum = stats.maximum();
1975
-
cpu.resetStatistics();
1976
-
ALOGI("CPU usage over past %.1f secs (%u mixer loops at %.1f mean ms per loop):\n us per mix loop: mean=%.0f stddev=%.0f min=%.0f max=%.0f\n %% of wall: mean=%.1f stddev=%.1f min=%.1f max=%.1f",
0 commit comments