Package com.yammer.metrics.core

Examples of com.yammer.metrics.core.TimerContext.stop()


                        }
                    }
                    v++;
                }
                logger.info("Restored " + restoreCount);
                _timer.stop();
            }

            // Note: accurate number only before snapshot is being purged
            public long numWalks() {
                long sum = 0;
View Full Code Here


                        bucketConsumer.consume(bucketIdx * bucketSize, new IntWalkArray(bucketToConsume), len);
                        if (len > 1000000) {
                            log((bucketIdx * bucketSize) + " - " + ((bucketIdx+1)) * bucketSize + ", " + len);
                        }
                    }
                    _timer.stop();
                    int[] array = snapshots[vertexId - fromVertex];
                    if (array == null) {
                        return null;
                    } else {
                        return new IntWalkArray(snapshots[vertexId - fromVertex]);
View Full Code Here

                }
            }
            dos.flush();
            dos.close();
        }
        _timer.stop();
    }

    public int getSourceVertex(int walk) {
        return sources[sourceIdx(walk)];
    }
View Full Code Here

                        if (counter == bucketSize) break;
                    }
                }
            }
        }
        _timer.stop();
    }
}
View Full Code Here

                        }
                    }
                    v++;
                }
                logger.info("Restored " + restoreCount);
                _timer.stop();
            }

            // Note: accurate number only before snapshot is being purged
            public long numWalks() {
                long sum = 0;
View Full Code Here

                        bucketConsumer.consume(bucketIdx * bucketSize, new LongWalkArray(bucketToConsume), len);
                        if (len > 1000000) {
                            log((bucketIdx * bucketSize) + " - " + ((bucketIdx+1)) * bucketSize + ", " + len);
                        }
                    }
                    _timer.stop();
                    long[] array = snapshots[vertexId - fromVertex];
                    if (array == null) {
                        return null;
                    } else {
                        return new LongWalkArray(snapshots[vertexId - fromVertex]);
View Full Code Here

                }
            }
            dos.flush();
            dos.close();
        }
        _timer.stop();
    }

    public int getSourceVertex(long walk) {
        return sources[sourceIdx(walk)];
    }
View Full Code Here

                        if (counter == bucketSize) break;
                    }
                }
            }
        }
        _timer.stop();
    }
}
View Full Code Here

            final TimerContext _timer = purgeTimer.time();
            for (LocalWalkBuffer buf : localBuffers) {
                buf.purge(job.getWalkManager());
            }
            localBuffers.clear();
            _timer.stop();
        }
    }

    public void beginInterval(GraphChiContext ctx, VertexInterval interval) {
        /* Count walks */
 
View Full Code Here

    public String echo(final String text) {
        final TimerContext timer = postTimer.time();
        try {
            return text;
        } finally {
            timer.stop();
        }
    }

    @PUT
    public void put(final String text) {
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.