java.lang.System.logI()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(10.3k)|赞(0)|评价(0)|浏览(236)

本文整理了Java中java.lang.System.logI()方法的一些代码示例,展示了System.logI()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。System.logI()方法的具体详情如下:
包路径:java.lang.System
类名称:System
方法名:logI

System.logI介绍

暂无

代码示例

代码示例来源:origin: robovm/robovm

@Override protected String[][] create(Locale locale) {
  long start = System.currentTimeMillis();
  // Set up the 2D array used to hold the names. The first column contains the Olson ids.
  String[][] result = new String[availableTimeZoneIds.length][5];
  for (int i = 0; i < availableTimeZoneIds.length; ++i) {
    result[i][0] = availableTimeZoneIds[i];
  }
  long nativeStart = System.currentTimeMillis();
  fillZoneStrings(locale.toString(), result);
  long nativeEnd = System.currentTimeMillis();
  internStrings(result);
  // Ending up in this method too often is an easy way to make your app slow, so we ensure
  // it's easy to tell from the log (a) what we were doing, (b) how long it took, and
  // (c) that it's all ICU's fault.
  long end = System.currentTimeMillis();
  long nativeDuration = nativeEnd - nativeStart;
  long duration = end - start;
  System.logI("Loaded time zone names for \"" + locale + "\" in " + duration + "ms" +
      " (" + nativeDuration + "ms in ICU)");
  return result;
}

代码示例来源:origin: robovm/robovm

public void destroy() {
  // If the process hasn't already exited, send it SIGKILL.
  synchronized (exitValueMutex) {
    if (exitValue == null) {
      try {
        Libcore.os.kill(pid, SIGKILL);
      } catch (ErrnoException e) {
        System.logI("Failed to destroy process " + pid, e);
      }
    }
  }
  // Close any open streams.
  IoUtils.closeQuietly(inputStream);
  IoUtils.closeQuietly(errorStream);
  IoUtils.closeQuietly(outputStream);
}

代码示例来源:origin: robovm/robovm

System.logI("Could not resolve '" + systemId + "' relative to"
    + " '" + this.systemId + "' at " + locator, e);

代码示例来源:origin: MobiVM/robovm

@Override protected String[][] create(Locale locale) {
  long start = System.currentTimeMillis();
  // Set up the 2D array used to hold the names. The first column contains the Olson ids.
  String[][] result = new String[availableTimeZoneIds.length][5];
  for (int i = 0; i < availableTimeZoneIds.length; ++i) {
    result[i][0] = availableTimeZoneIds[i];
  }
  long nativeStart = System.currentTimeMillis();
  fillZoneStrings(locale.toString(), result);
  long nativeEnd = System.currentTimeMillis();
  internStrings(result);
  // Ending up in this method too often is an easy way to make your app slow, so we ensure
  // it's easy to tell from the log (a) what we were doing, (b) how long it took, and
  // (c) that it's all ICU's fault.
  long end = System.currentTimeMillis();
  long nativeDuration = nativeEnd - nativeStart;
  long duration = end - start;
  System.logI("Loaded time zone names for \"" + locale + "\" in " + duration + "ms" +
      " (" + nativeDuration + "ms in ICU)");
  return result;
}

代码示例来源:origin: com.gluonhq/robovm-rt

@Override protected String[][] create(Locale locale) {
  long start = System.currentTimeMillis();
  // Set up the 2D array used to hold the names. The first column contains the Olson ids.
  String[][] result = new String[availableTimeZoneIds.length][5];
  for (int i = 0; i < availableTimeZoneIds.length; ++i) {
    result[i][0] = availableTimeZoneIds[i];
  }
  long nativeStart = System.currentTimeMillis();
  fillZoneStrings(locale.toString(), result);
  long nativeEnd = System.currentTimeMillis();
  internStrings(result);
  // Ending up in this method too often is an easy way to make your app slow, so we ensure
  // it's easy to tell from the log (a) what we were doing, (b) how long it took, and
  // (c) that it's all ICU's fault.
  long end = System.currentTimeMillis();
  long nativeDuration = nativeEnd - nativeStart;
  long duration = end - start;
  System.logI("Loaded time zone names for \"" + locale + "\" in " + duration + "ms" +
      " (" + nativeDuration + "ms in ICU)");
  return result;
}

代码示例来源:origin: com.bugvm/bugvm-rt

@Override protected String[][] create(Locale locale) {
  long start = System.currentTimeMillis();
  // Set up the 2D array used to hold the names. The first column contains the Olson ids.
  String[][] result = new String[availableTimeZoneIds.length][5];
  for (int i = 0; i < availableTimeZoneIds.length; ++i) {
    result[i][0] = availableTimeZoneIds[i];
  }
  long nativeStart = System.currentTimeMillis();
  fillZoneStrings(locale.toString(), result);
  long nativeEnd = System.currentTimeMillis();
  internStrings(result);
  // Ending up in this method too often is an easy way to make your app slow, so we ensure
  // it's easy to tell from the log (a) what we were doing, (b) how long it took, and
  // (c) that it's all ICU's fault.
  long end = System.currentTimeMillis();
  long nativeDuration = nativeEnd - nativeStart;
  long duration = end - start;
  System.logI("Loaded time zone names for \"" + locale + "\" in " + duration + "ms" +
      " (" + nativeDuration + "ms in ICU)");
  return result;
}

代码示例来源:origin: FlexoVM/flexovm

@Override protected String[][] create(Locale locale) {
  long start = System.currentTimeMillis();
  // Set up the 2D array used to hold the names. The first column contains the Olson ids.
  String[][] result = new String[availableTimeZoneIds.length][5];
  for (int i = 0; i < availableTimeZoneIds.length; ++i) {
    result[i][0] = availableTimeZoneIds[i];
  }
  long nativeStart = System.currentTimeMillis();
  fillZoneStrings(locale.toString(), result);
  long nativeEnd = System.currentTimeMillis();
  internStrings(result);
  // Ending up in this method too often is an easy way to make your app slow, so we ensure
  // it's easy to tell from the log (a) what we were doing, (b) how long it took, and
  // (c) that it's all ICU's fault.
  long end = System.currentTimeMillis();
  long nativeDuration = nativeEnd - nativeStart;
  long duration = end - start;
  System.logI("Loaded time zone names for \"" + locale + "\" in " + duration + "ms" +
      " (" + nativeDuration + "ms in ICU)");
  return result;
}

代码示例来源:origin: ibinti/bugvm

@Override protected String[][] create(Locale locale) {
  long start = System.currentTimeMillis();
  // Set up the 2D array used to hold the names. The first column contains the Olson ids.
  String[][] result = new String[availableTimeZoneIds.length][5];
  for (int i = 0; i < availableTimeZoneIds.length; ++i) {
    result[i][0] = availableTimeZoneIds[i];
  }
  long nativeStart = System.currentTimeMillis();
  fillZoneStrings(locale.toString(), result);
  long nativeEnd = System.currentTimeMillis();
  internStrings(result);
  // Ending up in this method too often is an easy way to make your app slow, so we ensure
  // it's easy to tell from the log (a) what we were doing, (b) how long it took, and
  // (c) that it's all ICU's fault.
  long end = System.currentTimeMillis();
  long nativeDuration = nativeEnd - nativeStart;
  long duration = end - start;
  System.logI("Loaded time zone names for \"" + locale + "\" in " + duration + "ms" +
      " (" + nativeDuration + "ms in ICU)");
  return result;
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

@Override protected String[][] create(Locale locale) {
  long start = System.currentTimeMillis();
  // Set up the 2D array used to hold the names. The first column contains the Olson ids.
  String[][] result = new String[availableTimeZoneIds.length][5];
  for (int i = 0; i < availableTimeZoneIds.length; ++i) {
    result[i][0] = availableTimeZoneIds[i];
  }
  long nativeStart = System.currentTimeMillis();
  fillZoneStrings(locale.toString(), result);
  long nativeEnd = System.currentTimeMillis();
  internStrings(result);
  // Ending up in this method too often is an easy way to make your app slow, so we ensure
  // it's easy to tell from the log (a) what we were doing, (b) how long it took, and
  // (c) that it's all ICU's fault.
  long end = System.currentTimeMillis();
  long nativeDuration = nativeEnd - nativeStart;
  long duration = end - start;
  System.logI("Loaded time zone names for \"" + locale + "\" in " + duration + "ms" +
      " (" + nativeDuration + "ms in ICU)");
  return result;
}

代码示例来源:origin: MobiVM/robovm

public void destroy() {
  // If the process hasn't already exited, send it SIGKILL.
  synchronized (exitValueMutex) {
    if (exitValue == null) {
      try {
        Libcore.os.kill(pid, SIGKILL);
      } catch (ErrnoException e) {
        System.logI("Failed to destroy process " + pid, e);
      }
    }
  }
  // Close any open streams.
  IoUtils.closeQuietly(inputStream);
  IoUtils.closeQuietly(errorStream);
  IoUtils.closeQuietly(outputStream);
}

代码示例来源:origin: ibinti/bugvm

public void destroy() {
  // If the process hasn't already exited, send it SIGKILL.
  synchronized (exitValueMutex) {
    if (exitValue == null) {
      try {
        Libcore.os.kill(pid, SIGKILL);
      } catch (ErrnoException e) {
        System.logI("Failed to destroy process " + pid, e);
      }
    }
  }
  // Close any open streams.
  IoUtils.closeQuietly(inputStream);
  IoUtils.closeQuietly(errorStream);
  IoUtils.closeQuietly(outputStream);
}

代码示例来源:origin: FlexoVM/flexovm

public void destroy() {
  // If the process hasn't already exited, send it SIGKILL.
  synchronized (exitValueMutex) {
    if (exitValue == null) {
      try {
        Libcore.os.kill(pid, SIGKILL);
      } catch (ErrnoException e) {
        System.logI("Failed to destroy process " + pid, e);
      }
    }
  }
  // Close any open streams.
  IoUtils.closeQuietly(inputStream);
  IoUtils.closeQuietly(errorStream);
  IoUtils.closeQuietly(outputStream);
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

public void destroy() {
  // If the process hasn't already exited, send it SIGKILL.
  synchronized (exitValueMutex) {
    if (exitValue == null) {
      try {
        Libcore.os.kill(pid, SIGKILL);
      } catch (ErrnoException e) {
        System.logI("Failed to destroy process " + pid, e);
      }
    }
  }
  // Close any open streams.
  IoUtils.closeQuietly(inputStream);
  IoUtils.closeQuietly(errorStream);
  IoUtils.closeQuietly(outputStream);
}

代码示例来源:origin: com.gluonhq/robovm-rt

public void destroy() {
  // If the process hasn't already exited, send it SIGKILL.
  synchronized (exitValueMutex) {
    if (exitValue == null) {
      try {
        Libcore.os.kill(pid, SIGKILL);
      } catch (ErrnoException e) {
        System.logI("Failed to destroy process " + pid, e);
      }
    }
  }
  // Close any open streams.
  IoUtils.closeQuietly(inputStream);
  IoUtils.closeQuietly(errorStream);
  IoUtils.closeQuietly(outputStream);
}

代码示例来源:origin: com.bugvm/bugvm-rt

public void destroy() {
  // If the process hasn't already exited, send it SIGKILL.
  synchronized (exitValueMutex) {
    if (exitValue == null) {
      try {
        Libcore.os.kill(pid, SIGKILL);
      } catch (ErrnoException e) {
        System.logI("Failed to destroy process " + pid, e);
      }
    }
  }
  // Close any open streams.
  IoUtils.closeQuietly(inputStream);
  IoUtils.closeQuietly(errorStream);
  IoUtils.closeQuietly(outputStream);
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

System.logI("Could not resolve '" + systemId + "' relative to"
    + " '" + this.systemId + "' at " + locator, e);

代码示例来源:origin: MobiVM/robovm

System.logI("Could not resolve '" + systemId + "' relative to"
    + " '" + this.systemId + "' at " + locator, e);

代码示例来源:origin: ibinti/bugvm

System.logI("Could not resolve '" + systemId + "' relative to"
    + " '" + this.systemId + "' at " + locator, e);

代码示例来源:origin: FlexoVM/flexovm

System.logI("Could not resolve '" + systemId + "' relative to"
    + " '" + this.systemId + "' at " + locator, e);

代码示例来源:origin: com.gluonhq/robovm-rt

System.logI("Could not resolve '" + systemId + "' relative to"
    + " '" + this.systemId + "' at " + locator, e);

相关文章