Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scripts/create_perf_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def __init__(self, shortname: str, longname: str, version: str,
@param shortname: typically 3 letter name like SKL.
@param longname: the model name like Skylake.
@param version: the version number associated with the event json.
@param models: a set of model indentifier strings like "GenuineIntel-6-2E".
@param models: a set of model identifier strings like "GenuineIntel-6-2E".
@param files: a mapping from a type of file to the file's path.
"""
self.shortname = shortname
Expand Down Expand Up @@ -586,16 +586,16 @@ def mapfile_line(self) -> str:
if len(min(self.models)) - len(prefix) > 1:
start_bracket = '('
end_bracket = ')'
seperator = '|'
separator = '|'
else:
start_bracket = '['
end_bracket = ']'
seperator = ''
separator = ''
ret = prefix + start_bracket
first = True
for x in self.models:
if not first:
ret += seperator
ret += separator
ret += x[len(prefix):]
first = False
ret += end_bracket
Expand Down
8 changes: 4 additions & 4 deletions scripts/perf_format_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def main():
# Get file pointers from args
arg_input_file, args_tma = get_args()

# Check that intput/output dirs exists
# Check that input/output dirs exists
ensure_directories()

# Check for input file arg
Expand All @@ -89,7 +89,7 @@ def main():
convert_file(file, args_tma)

def ensure_directories():
# Check that intput/output dirs exists
"""Check that input/output dirs exists"""
try:
if not Path(FILE_PATH, INPUT_DIR_PATH).exists():
Path(FILE_PATH, INPUT_DIR_PATH).mkdir(parents=True, exist_ok=True)
Expand Down Expand Up @@ -364,7 +364,7 @@ def get_expression(self, metric: dict, platform: dict) -> str:
un-aliased expressions.

@param metric: metric data as a dictionary
@param platform: dictonary with platform info
@param platform: dictionary with platform info
@returns: string containing un-aliased expression
"""
try:
Expand All @@ -376,7 +376,7 @@ def get_expression(self, metric: dict, platform: dict) -> str:
print("Error: TMA metric without base formula found")
# Non TMA metric
else:
# Seperate operators with spaces
# Separate operators with spaces
aliased_formula = fixSpacing(metric["Formula"])

# Get formula and events for conversion
Expand Down
Loading