BasicProfilerDemo (SLF4J 1.7.4 Test API)
Date: 2013-03-18

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.slf4j.profiler
Class BasicProfilerDemo

    java.lang.Object
      org.slf4j.profiler.BasicProfilerDemo

    public class BasicProfilerDemo

extends Object

This demo illustrates usage of SLF4J profilers.

We have been given the task of generating a large number, say N, of random integers. We need to transform that array into a smaller array containing only prime numbers. The new array has to be sorted.

While tackling this problem, we would like to measure the time spent in each subtask.

A typical output for this demo would be:

       + Profiler [BASIC]
       |-- elapsed time                      [A]   213.186 milliseconds.
       |-- elapsed time                      [B]  2499.107 milliseconds.
       |-- elapsed time                  [OTHER]  3300.752 milliseconds.
       |-- Total                         [BASIC]  6014.161 milliseconds.

Author:
  Ceki Gulcu

Constructor Summary
`BasicProfilerDemo()`

Method Summary
`static void` | `main(String[] args)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### BasicProfilerDemo

    public BasicProfilerDemo()

Method Detail

### main

    public static void main(String[] args)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005-2013 QOS.ch. All Rights Reserved.