ceaad6e3750b463015890a36e13ec6e11f6ee005,perfkitbenchmarker/benchmarks/fio_benchmark.py,,GetOrGenerateJobFileString,#Any#Any#Any#Any#Any#Any#,275
Before Change
if scenario_strings is None and not fio_jobfile:
fio_jobfile = data.ResourcePath("fio.job")
if fio_jobfile:
return ProcessUserJobFile(fio_jobfile,
remove_filename)
else:
if "all" in scenario_strings:
scenarios = SCENARIOS.itervalues()
else:
for name in scenario_strings:
if name not in SCENARIOS:
logging.error("Unknown scenario name %s", name)
scenarios = (SCENARIOS[name] for name in scenario_strings)
return GenerateJobFileString(filename, scenarios,
io_depths, working_set_size)
def WarnOnBadFlags():
Warn the user if they pass bad flag combinations.
if FLAGS.fio_jobfile:
After Change
use_user_jobfile = job_file_path or not scenario_strings
if use_user_jobfile:
remove_filename = against_device
return ProcessedJobFileString(job_file_path or data.ResourcePath("fio.job"),
remove_filename)
else:
if against_device:
filename = disk.GetDevicePath()
else:
// Since we pass --directory to fio, we must use relative file
// paths or get an error.
filename = DEFAULT_TEMP_FILE_NAME
return GenerateJobFileString(filename, scenario_strings,
io_depths, working_set_size)
def WarnOnBadFlags():
Warn the user if they pass bad flag combinations.
if FLAGS.fio_jobfile:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: ceaad6e3750b463015890a36e13ec6e11f6ee005
Time: 2015-09-30
Author: nlavine@google.com
File Name: perfkitbenchmarker/benchmarks/fio_benchmark.py
Class Name:
Method Name: GetOrGenerateJobFileString
Project Name: home-assistant/home-assistant
Commit Name: 09d531b3b95e7943df53233d1abcb40d7e87de94
Time: 2016-08-18
Author: nkgilley@gmail.com
File Name: homeassistant/components/media_player/gpmdp.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: aa6a0523ef60f299d9c22333fdfe52687e902ee4
Time: 2016-08-20
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/camera/generic.py
Class Name: GenericCamera
Method Name: camera_image
Project Name: home-assistant/home-assistant
Commit Name: e95c50c7429d9111188f79e9f20013a93dc1bf31
Time: 2019-01-29
Author: MatteGary@users.noreply.github.com
File Name: homeassistant/components/sensor/transmission.py
Class Name:
Method Name: setup_platform