Package edu.brown.profilers

Examples of edu.brown.profilers.TransactionProfiler


    private boolean setupTransactionProfiler(LocalTransaction ts, boolean sysproc) {
        if (hstore_conf.site.txn_profiling &&
                sysproc == false &&
                this.rng.nextDouble() < hstore_conf.site.txn_profiling_sample) {
            if (ts.profiler == null) {
                ts.setProfiler(new TransactionProfiler());
            }
            ts.profiler.enableProfiling();
            ts.profiler.startTransaction(ProfileMeasurement.getTime());
            return (true);
        } else if (ts.profiler != null) {
View Full Code Here


        columns.add(new VoltTable.ColumnInfo("PREFETCH_UNUSED_AVG", VoltType.FLOAT));
//        columns.add(new VoltTable.ColumnInfo("SPECULATIVE_CNT", VoltType.BIGINT));
//        columns.add(new VoltTable.ColumnInfo("SPECULATIVE_AVG", VoltType.FLOAT));
       
        // Construct a dummy TransactionProfiler so that we can get the fields
        TransactionProfiler profiler = new TransactionProfiler();
        for (ProfileMeasurement pm : profiler.getProfileMeasurements()) {
            String name = pm.getName().toUpperCase();
            // We need two columns per ProfileMeasurement
            //  (1) The total think time in nanoseconds
            //  (2) The number of invocations
            // See AbstractProfiler.getTuple()
View Full Code Here

    /**
     *
     * @param catalog_db
     */
    private void initTxnProfileInfo(Database catalog_db) {
        TransactionProfiler profiler = new TransactionProfiler();
        ProfileMeasurement fields[] = profiler.getProfileMeasurements();
       
        // COLUMN DELIMITERS
        String last_prefix = null;
        String col_delimiters[] = new String[fields.length*2 + 2];
        int col_idx = 0;
View Full Code Here

TOP

Related Classes of edu.brown.profilers.TransactionProfiler

Copyright © 2018 www.massapicom. 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.