-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Long workload name layout fix (#269)
* changed layout to fit experiment names - added span to show full name - shortened name to fit dropwdown - changed layout for added consistency * layout Fixes - refresh button is to the right - header is more consistent across different width screens * header layout update - center div makes turns into multiple lines if not all items fit * slight improvement for header/graph spacing * Fixed refresh button shape and function - moved find_causal_files to parser so that main and gui can access - resized refresh width to allow for same shape across different screens * all graphs now have the same width - graphs now have same width - chart headers start well below the header with filters --------- Co-authored-by: Jonathan R. Madsen <jrmadsen@users.noreply.github.com>
- Loading branch information
1 parent
b39a683
commit 0427d2a
Showing
122 changed files
with
35,923 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,9 @@ | |
*.out | ||
*.app | ||
|
||
# Python cache files | ||
*.pyc | ||
|
||
/build* | ||
/.vscode | ||
/.cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# build files | ||
/build* | ||
/*.egg-info | ||
/source/VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
# direct include | ||
|
||
include README.md | ||
include requirements.txt | ||
|
||
# recursive includes | ||
|
||
recursive-include source * | ||
|
||
# global exclude | ||
|
||
global-exclude *.pyc | ||
global-exclude *.git* | ||
global-exclude *__pycache__* | ||
|
||
# recursive excludes | ||
|
||
recursive-exclude omnitrace_causal_viewer.egg-info * | ||
recursive-exclude build * | ||
recursive-exclude dist * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Omnitrace Causal Viewer | ||
|
||
## Installation | ||
|
||
```console | ||
python -m pip install . | ||
``` | ||
|
||
## Execution | ||
|
||
### From installation | ||
|
||
#### Console Script | ||
|
||
```console | ||
omnitrace-causal-plot <args...> | ||
``` | ||
|
||
#### Module | ||
|
||
```console | ||
python -m omnitrace_causal_viewer <args...> | ||
``` | ||
|
||
### From source tree | ||
|
||
```console | ||
python -m source <args...> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools >= 40.0.4", | ||
"setuptools_scm >= 2.0.0", | ||
"wheel >= 0.29.0", | ||
] | ||
build-backend = 'setuptools.build_meta' | ||
|
||
[tool.black] | ||
line-length = 90 | ||
target-version = ['py38'] | ||
include = '\.py$' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
numpy | ||
matplotlib | ||
pandas | ||
dash | ||
dash_daq | ||
dash_svg | ||
dash_bootstrap_components | ||
pyparsing | ||
tabulate | ||
jsondiff | ||
plotly | ||
pyyaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"cli": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[metadata] | ||
name = omnitrace-causal-viewer | ||
url = https://github.com/AMDResearch/omnitrace | ||
download_url = https://github.com/AMDResearch/omnitrace.git | ||
maintainer = AMD Research | ||
license = MIT | ||
description = GUI for viewing Omnitrace causal profiles | ||
keywords = | ||
gui | ||
causal profiling | ||
performance | ||
profiling | ||
sampling | ||
classifiers = | ||
Development Status :: 4 - Beta | ||
Intended Audience :: Developers | ||
Intended Audience :: Science/Research | ||
Natural Language :: English | ||
License :: OSI Approved :: MIT License | ||
Operating System :: POSIX :: Linux | ||
Programming Language :: C++ | ||
Programming Language :: Python :: 3 | ||
|
||
[options] | ||
packages = omnitrace_causal_viewer | ||
zip_safe = true | ||
include_package_data = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
import glob | ||
import shutil | ||
|
||
from setuptools import setup | ||
|
||
|
||
def get_project_version(): | ||
# open "VERSION" | ||
_cwd = os.path.dirname(__file__) | ||
with open(os.path.join(_cwd, "source", "VERSION"), "r") as f: | ||
data = f.read().replace("\n", "") | ||
# make sure is string | ||
if isinstance(data, list) or isinstance(data, tuple): | ||
return data[0] | ||
else: | ||
return data | ||
|
||
|
||
def get_long_description(): | ||
long_descript = "" | ||
try: | ||
long_descript = open("README.md").read() | ||
except Exception: | ||
long_descript = "" | ||
return long_descript | ||
|
||
|
||
def parse_requirements(fname="requirements.txt"): | ||
_req = [] | ||
requirements = [] | ||
# read in the initial set of requirements | ||
with open(fname, "r") as fp: | ||
_req = list(filter(bool, (line.strip() for line in fp))) | ||
# look for entries which read other files | ||
for itr in _req: | ||
if itr.startswith("-r "): | ||
# read another file | ||
for fitr in itr.split(" "): | ||
if os.path.exists(fitr): | ||
requirements.extend(parse_requirements(fitr)) | ||
else: | ||
# append package | ||
requirements.append(itr) | ||
# return the requirements | ||
return requirements | ||
|
||
|
||
setup( | ||
name="omnitrace-causal-viewer", | ||
version=get_project_version(), | ||
description="GUI for viewing causal profilers", | ||
long_description=get_long_description(), | ||
long_description_content_type="text/markdown", | ||
author="AMD Research", | ||
packages=["omnitrace_causal_viewer"], | ||
package_dir={"omnitrace_causal_viewer": "source"}, | ||
package_data={ | ||
"omnitrace_causal_viewer": [ | ||
"source/assets/*", | ||
"source/workloads/*", | ||
"source/VERSION", | ||
] | ||
}, | ||
install_requires=parse_requirements(), | ||
python_requires=">=3.6", | ||
entry_points={ | ||
"console_scripts": ["omnitrace-causal-plot=omnitrace_causal_viewer.__main__:main"] | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env python3 | ||
# MIT License | ||
# | ||
# Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in all | ||
# copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
# SOFTWARE. | ||
|
||
from __future__ import absolute_import | ||
|
||
__author__ = "AMD Research" | ||
__copyright__ = "Copyright 2023, Advanced Micro Devices, Inc." | ||
__license__ = "MIT" | ||
__maintainer__ = "AMD Research" | ||
__status__ = "Development" | ||
|
||
|
||
def _get_version(): | ||
import os | ||
from pathlib import Path | ||
|
||
this_dir = Path(__file__).resolve().parent | ||
ver_path = os.path.join(f"{this_dir}", "VERSION") | ||
if os.path.exists(ver_path): | ||
with open(ver_path, "r") as f: | ||
return f.read().strip("\n") | ||
return "???" | ||
|
||
|
||
__version__ = _get_version() |
Oops, something went wrong.