Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[python][windows] relog コマンドを 再帰的に実行して blg ファイルを csv に変換 (パフォーマンスカウンタ, バイナリからCSVへ変換)
import argparse
import pathlib
import subprocess
def main(args):
for p in pathlib.Path(args.target_dir).rglob('*.blg'):
csv_path = p.with_suffix('.csv')'relog "{p}" -o "{csv_path}" -f CSV')
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('target_dir', default='.')
args = parser.parse_args()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment