Lines Matching full:count
2 # This script is used to bisect skip and count arguments for --debug-counter.
3 # It is similar to bisect, except it understands how to increase skip and decrease count
7 # bisect-skip-count bisect-command.sh "%(skip)d" "%(count)d" 2>&1 | tee bisect.out
13 # count=$2
15 # opt -debug-counter=my-counter-skip=${skip},my-counter-count=${count}
19 # count" to find the values of the counter that produce a passing
20 # result. Incrementing the last good count by one or decrementing the
56 count = start + (end - start)//2 variable
57 print("Visiting Skip: %d with (Start, End) = (%d,%d)" % (count, start, end))
58 cmd = [x % {'skip':count, 'count':-1} for x in args.command]
63 print(" PASSES! Setting end to count")
64 end = count
66 print(" FAILS! Setting start to count")
67 start = count
69 print(" TIMEOUT, setting end to count")
70 end = count
75 print("Bisect of Count starting!")
79 count = start + (end - start)//2 variable
80 print("Visiting Count: %d with (Start, End) = (%d,%d)" % (count, start, end))
81 cmd = [x % {'count':count, 'skip':firstcount } for x in args.command]
86 print(" PASSES! Setting start to count")
87 start = count
89 print(" FAILS! Setting end to count")
90 end = count
92 print(" TIMEOUT, setting start to count")
93 start = count
95 print("Last good count: %d" % start)