Package com.alibaba.druid.util

Examples of com.alibaba.druid.util.Histogram.record()


    public void test_histo() throws Exception {
        Histogram histo = Histogram.makeHistogram(4);
       
        Assert.assertEquals(4, histo.getRanges().length);

        histo.record(0);
       
        histo.record(1);
        histo.record(2);
       
        histo.record(11);
View Full Code Here


       
        Assert.assertEquals(4, histo.getRanges().length);

        histo.record(0);
       
        histo.record(1);
        histo.record(2);
       
        histo.record(11);
        histo.record(12);
        histo.record(13);
View Full Code Here

        Assert.assertEquals(4, histo.getRanges().length);

        histo.record(0);
       
        histo.record(1);
        histo.record(2);
       
        histo.record(11);
        histo.record(12);
        histo.record(13);
       
View Full Code Here

        histo.record(0);
       
        histo.record(1);
        histo.record(2);
       
        histo.record(11);
        histo.record(12);
        histo.record(13);
       
        histo.record(101);
        histo.record(102);
View Full Code Here

       
        histo.record(1);
        histo.record(2);
       
        histo.record(11);
        histo.record(12);
        histo.record(13);
       
        histo.record(101);
        histo.record(102);
        histo.record(103);
View Full Code Here

        histo.record(1);
        histo.record(2);
       
        histo.record(11);
        histo.record(12);
        histo.record(13);
       
        histo.record(101);
        histo.record(102);
        histo.record(103);
        histo.record(104);
View Full Code Here

       
        histo.record(11);
        histo.record(12);
        histo.record(13);
       
        histo.record(101);
        histo.record(102);
        histo.record(103);
        histo.record(104);
       
        histo.record(1001);
View Full Code Here

        histo.record(11);
        histo.record(12);
        histo.record(13);
       
        histo.record(101);
        histo.record(102);
        histo.record(103);
        histo.record(104);
       
        histo.record(1001);
        histo.record(1002);
View Full Code Here

        histo.record(12);
        histo.record(13);
       
        histo.record(101);
        histo.record(102);
        histo.record(103);
        histo.record(104);
       
        histo.record(1001);
        histo.record(1002);
        histo.record(1003);
View Full Code Here

        histo.record(13);
       
        histo.record(101);
        histo.record(102);
        histo.record(103);
        histo.record(104);
       
        histo.record(1001);
        histo.record(1002);
        histo.record(1003);
        histo.record(1004);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.