User regions in Python (#57)

* User regions in Python

* User-region testing + common submodule

- Updated examples/python/source.py to use user-regions
- Python-level user submodule
- Python-level common submodule
- clean-up of profiler python code
- extended source.py testing to include the user-regions

[ROCm/rocprofiler-systems commit: 4dd144a32c]
このコミットが含まれているのは:
Jonathan R. Madsen
2022-07-25 20:24:34 -05:00
committed by GitHub
コミット d2a39b9066
9個のファイルの変更371行の追加167行の削除
+2 -2
ファイルの表示
@@ -25,9 +25,9 @@ def validate_json(data, labels, counts, depths):
if _prefix != eitr[0]:
raise RuntimeError(f"Mismatched prefix: {_prefix} vs. {eitr[0]}")
if _count != eitr[1]:
raise RuntimeError(f"Mismatched count: {_count} vs. {eitr[1]}")
raise RuntimeError(f"Mismatched count for {_prefix}: {_count} vs. {eitr[1]}")
if _depth != eitr[2]:
raise RuntimeError(f"Mismatched depth: {_depth} vs. {eitr[2]}")
raise RuntimeError(f"Mismatched depth for {_prefix}: {_depth} vs. {eitr[2]}")
if __name__ == "__main__":