Lines Matching full:threshold
3 # dbslower Trace MySQL and PostgreSQL queries slower than a threshold.
5 # USAGE: dbslower [-v] [-p PID [PID ...]] [-b PATH_TO_BINARY] [-m THRESHOLD]
8 # By default, a threshold of 1ms is used. Set the threshold to 0 to trace all
51 parser.add_argument("-m", "--threshold", type=int, default=1,
52 help="trace queries slower than this threshold (ms)")
57 threshold_ns = args.threshold * 1000000
153 #ifdef THRESHOLD
154 if (delta >= THRESHOLD) {
155 #endif //THRESHOLD
168 #ifdef THRESHOLD
170 #endif //THRESHOLD
178 "#define THRESHOLD %d" % threshold_ns if threshold_ns > 0 else "")
221 (args.path, args.threshold))
224 (', '.join(map(str, args.pids)), args.threshold))