Java程序监控API Java Simon

码农软件 · 软件分类 · 其他开发相关 · 2019-10-28 23:42:23

软件介绍

Java Simon 是一个简单的监控 API ,可用于监控 Java 程序中的执行情况,监控代码直接植入应用程序中。

例如下面的代码:

// get us some stopwatch Simon
Stopwatch stopwatch = SimonManager.getStopwatch("org.javasimon.examples.HelloWorld-stopwatch");

Split split = stopwatch.start(); // start the stopwatch
System.out.println("Hello world, " + stopwatch); // print it
split.stop(); // stop it

System.out.println("Result: " + stopwatch); // here we print our stopwatch again

输入结果:

Hello world, Simon Stopwatch: [org.javasimon.examples.HelloWorld-stopwatch INHERIT]
 total 0 ns, counter 0, max 0 ns, min undef
Result: Simon Stopwatch: [org.javasimon.examples.HelloWorld-stopwatch INHERIT]
 total 59.2 ms, counter 1, max 59.2 ms, min 59.2 ms

本文地址:https://codercto.com/soft/d/17787.html

Professional JavaScript for Web Developers

Professional JavaScript for Web Developers

Nicholas C. Zakas / Wrox / 2009-1-14 / USD 49.99

This eagerly anticipated update to the breakout book on JavaScript offers you an in-depth look at the numerous advances to the techniques and technology of the JavaScript language. You'll see why Java......一起来看看 《Professional JavaScript for Web Developers》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

在线进制转换器
在线进制转换器

各进制数互转换器

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换