Examples of PartitionLockQueueProfiler


Examples of edu.brown.profilers.PartitionLockQueueProfiler

       
        this.partitionId = partitionId;
        this.maxWaitTime = maxWaitTime;
       
        if (HStoreConf.singleton().site.queue_profiling) {
            this.profiler = new PartitionLockQueueProfiler();
        } else {
            this.profiler = null;
        }
    }
View Full Code Here

Examples of edu.brown.profilers.PartitionLockQueueProfiler

        // ThrottlingQueue
        columns.add(new VoltTable.ColumnInfo("THROTTLED", VoltType.BIGINT));
        columns.add(new VoltTable.ColumnInfo("THROTTLED_CNT", VoltType.BIGINT));
       
        // Add in PartitionLockQueueProfiler stats
        PartitionLockQueueProfiler initProfiler = new PartitionLockQueueProfiler();
        columns.add(new VoltTable.ColumnInfo("AVG_TXN_WAIT", VoltType.FLOAT));
        for (ProfileMeasurement pm : initProfiler.queueStates.values()) {
            String name = pm.getName().toUpperCase();
            columns.add(new VoltTable.ColumnInfo(name, VoltType.BIGINT));
            columns.add(new VoltTable.ColumnInfo(name+"_CNT", VoltType.BIGINT));
View Full Code Here

Examples of edu.brown.profilers.PartitionLockQueueProfiler

    protected synchronized void updateStatsRow(Object rowKey, Object[] rowValues) {
        int partition = (Integer)rowKey;
        TransactionQueueManager.Debug dbg = this.queue_manager.getDebugContext();
        TransactionQueueManagerProfiler profiler = dbg.getProfiler(partition);
        PartitionLockQueue initQueue = this.queue_manager.getLockQueue(partition);
        PartitionLockQueueProfiler initProfiler = initQueue.getDebugContext().getProfiler();
       
        int offset = this.columnNameToIndex.get("PARTITION");
        rowValues[offset++] = partition;
        rowValues[offset++] = MathUtil.weightedMean(profiler.concurrent_dtxn);
       
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.