Home | History | Annotate | Download | only in plot

Lines Matching refs:pattern

30 def find_file(path, pattern):
35 if fnmatch.fnmatch(file, pattern):
361 print 'fio2gnuplot -ghbiodvk -t <title> -o <outputfile> -p <pattern> -G <type> -m <time> -M <time>'
364 print '-p <pattern> or --pattern <pattern> : A glob pattern to select fio input files'
365 print '-b or --bandwidth : A predefined pattern for selecting *_bw.log files'
366 print '-i or --iops : A predefined pattern for selecting *_iops.log files'
369 print ' - Basename is set with the pattern if defined'
373 print '-G or --Global <type> : Search for <type> in .global files match by a pattern'
375 print ' - The .global extension is added automatically to the pattern'
383 pattern=''
410 opts, args = getopt.getopt(argv[1:],"ghkbivo:d:t:p:G:m:M:",['bandwidth', 'iops', 'pattern', 'outputfile', 'outputdir', 'title', 'min_time', 'max_time', 'gnuplot', 'Global', 'help', 'verbose','keep'])
418 pattern='*_bw.log'
420 pattern='*_iops.log'
426 elif opt in ("-p", "--pattern"):
428 pattern=arg
429 pattern=pattern.replace('\\','')
456 pattern = pattern+'.global'
458 fio_data_file=find_file('.',pattern)
460 print "No log file found with pattern %s!" % pattern
462 if (pattern == '*_bw.log'):
464 if (pattern == '*_iops.log'):
471 print "%d files Selected with pattern '%s'" % (len(fio_data_file), pattern)
487 #We need to adjust the output filename regarding the pattern required by the user
489 gnuplot_output_filename=pattern
490 # As we do have some glob in the pattern, let's make this simpliest