shadows/framework/src/main/java/org/robolectric/shadows/ShadowTrace.java
@Implementation(minSdk = JELLY_BEAN_MR2)
  protected static void endSection() {
    if (Trace.isTagEnabled(TRACE_TAG_APP)) {
      synchronized (lock) {
        if (currentSections.isEmpty()) {
          Log.e(TAG, "Trying to end a trace section that was never started");
          return;
        }

        previousSections.offer(currentSections.removeFirst());
      }
    }
  }
@Implementation(minSdk = JELLY_BEAN_MR2)
  protected static void endSection() {
    if (Trace.isTagEnabled(TRACE_TAG_APP)) {
      synchronized (lock) {
        if (currentSections.isEmpty()) {
          Log.e(TAG, "Trying to end a trace section that was never started");
          return;
        }

        previousSections.offer(currentSections.removeFirst());
      }
    }
  }
@ Implementation ( minSdk = JELLY_BEAN_MR2 ) protected static void endSection ( ) { if ( Trace . isTagEnabled ( TRACE_TAG_APP ) ) { synchronized ( lock ) { if ( currentSections . isEmpty ( ) ) { Log . e ( TAG , "Trying to end a trace section that was never started" ) ; return ; } previousSections . offer ( currentSections . removeFirst ( ) ) ; } } }
Ends the most recent active trace section.

@throws {@link AssertionError} if called without any active trace section.
Ends the most recent active trace section .