ttnn-visualizer 0.33.0__py3-none-any.whl → 0.33.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ttnn_visualizer/csv_queries.py +2 -0
- ttnn_visualizer/sessions.py +1 -1
- ttnn_visualizer/settings.py +5 -3
- ttnn_visualizer/static/assets/{allPaths-C6ogTB83.js → allPaths-C1NlZ4tc.js} +1 -1
- ttnn_visualizer/static/assets/{allPathsLoader-Bs7BWkwM.js → allPathsLoader-B5Ah5bqG.js} +2 -2
- ttnn_visualizer/static/assets/{index-63bSWxIA.js → index-C2xbrqJV.js} +84 -84
- ttnn_visualizer/static/assets/{splitPathsBySizeLoader-CL_7xWwD.js → splitPathsBySizeLoader-BHVWfA4U.js} +1 -1
- ttnn_visualizer/static/index.html +1 -1
- ttnn_visualizer/views.py +9 -0
- {ttnn_visualizer-0.33.0.dist-info → ttnn_visualizer-0.33.2.dist-info}/METADATA +1 -1
- {ttnn_visualizer-0.33.0.dist-info → ttnn_visualizer-0.33.2.dist-info}/RECORD +16 -16
- {ttnn_visualizer-0.33.0.dist-info → ttnn_visualizer-0.33.2.dist-info}/LICENSE +0 -0
- {ttnn_visualizer-0.33.0.dist-info → ttnn_visualizer-0.33.2.dist-info}/LICENSE_understanding.txt +0 -0
- {ttnn_visualizer-0.33.0.dist-info → ttnn_visualizer-0.33.2.dist-info}/WHEEL +0 -0
- {ttnn_visualizer-0.33.0.dist-info → ttnn_visualizer-0.33.2.dist-info}/entry_points.txt +0 -0
- {ttnn_visualizer-0.33.0.dist-info → ttnn_visualizer-0.33.2.dist-info}/top_level.txt +0 -0
ttnn_visualizer/csv_queries.py
CHANGED
@@ -482,6 +482,8 @@ class OpsPerformanceQueries:
|
|
482
482
|
|
483
483
|
# Find the latest file with the correct prefix
|
484
484
|
perf_files = list(
|
485
|
+
performance_path.glob(f"{OpsPerformanceQueries.PERF_RESULTS_PREFIX}.csv")
|
486
|
+
) + list(
|
485
487
|
performance_path.glob(f"{OpsPerformanceQueries.PERF_RESULTS_PREFIX}_*.csv")
|
486
488
|
)
|
487
489
|
if not perf_files:
|
ttnn_visualizer/sessions.py
CHANGED
@@ -276,7 +276,7 @@ def init_sessions(app):
|
|
276
276
|
|
277
277
|
|
278
278
|
def create_random_instance_id():
|
279
|
-
return ''.join(random.choices(string.ascii_lowercase + string.digits, k=
|
279
|
+
return ''.join(random.choices(string.ascii_lowercase + string.digits, k=45))
|
280
280
|
|
281
281
|
|
282
282
|
def create_instance_from_local_paths(profiler_path, performance_path):
|
ttnn_visualizer/settings.py
CHANGED
@@ -16,16 +16,18 @@ class DefaultConfig(object):
|
|
16
16
|
DEBUG = bool(str_to_bool(os.getenv("FLASK_DEBUG", "false")))
|
17
17
|
TESTING = False
|
18
18
|
PRINT_ENV = True
|
19
|
+
SERVER_MODE = str_to_bool(os.getenv("SERVER_MODE", "false"))
|
19
20
|
|
20
21
|
# Path Settings
|
21
22
|
DB_VERSION = "0.29.0" # App version when DB schema last changed
|
22
|
-
REPORT_DATA_DIRECTORY = Path(__file__).parent.absolute().joinpath("data")
|
23
|
+
REPORT_DATA_DIRECTORY = os.getenv("REPORT_DATA_DIRECTORY", Path(__file__).parent.absolute().joinpath("data"))
|
23
24
|
LOCAL_DATA_DIRECTORY = Path(REPORT_DATA_DIRECTORY).joinpath("local")
|
24
25
|
REMOTE_DATA_DIRECTORY = Path(REPORT_DATA_DIRECTORY).joinpath("remote")
|
25
26
|
PROFILER_DIRECTORY_NAME = "profiler-reports"
|
26
27
|
PERFORMANCE_DIRECTORY_NAME = "performance-reports"
|
27
28
|
NPE_DIRECTORY_NAME = "npe-reports"
|
28
29
|
APPLICATION_DIR = os.path.abspath(os.path.join(__file__, "..", os.pardir))
|
30
|
+
APP_DATA_DIRECTORY = os.path.join("APP_DATA_DIRECTORY", APPLICATION_DIR)
|
29
31
|
STATIC_ASSETS_DIR = Path(APPLICATION_DIR).joinpath("ttnn_visualizer", "static")
|
30
32
|
SEND_FILE_MAX_AGE_DEFAULT = 0
|
31
33
|
|
@@ -40,7 +42,7 @@ class DefaultConfig(object):
|
|
40
42
|
|
41
43
|
# SQL Alchemy Settings
|
42
44
|
SQLALCHEMY_DATABASE_URI = (
|
43
|
-
f"sqlite:///{os.path.join(
|
45
|
+
f"sqlite:///{os.path.join(APP_DATA_DIRECTORY, f'ttnn_{DB_VERSION}.db')}"
|
44
46
|
)
|
45
47
|
SQLALCHEMY_ENGINE_OPTIONS = {
|
46
48
|
"pool_size": 10, # Adjust pool size as needed (default is 5)
|
@@ -53,7 +55,7 @@ class DefaultConfig(object):
|
|
53
55
|
GUNICORN_WORKER_CLASS = os.getenv("GUNICORN_WORKER_CLASS", "gevent")
|
54
56
|
GUNICORN_WORKERS = os.getenv("GUNICORN_WORKERS", "1")
|
55
57
|
PORT = os.getenv("PORT", "8000")
|
56
|
-
HOST = "localhost"
|
58
|
+
HOST = os.getenv("HOST", "localhost")
|
57
59
|
DEV_SERVER_PORT = "5173"
|
58
60
|
DEV_SERVER_HOST = "localhost"
|
59
61
|
|
@@ -1 +1 @@
|
|
1
|
-
import{I as n}from"./index-BVMreIQm.js";import{I as e}from"./index-Do7YB6C4.js";import{p as r,I as s}from"./index-
|
1
|
+
import{I as n}from"./index-BVMreIQm.js";import{I as e}from"./index-Do7YB6C4.js";import{p as r,I as s}from"./index-C2xbrqJV.js";function I(o,t){var a=r(o);return t===s.STANDARD?n[a]:e[a]}function p(o){return r(o)}export{n as IconSvgPaths16,e as IconSvgPaths20,I as getIconPaths,p as iconNameToPathsRecordKey};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/allPaths-
|
2
|
-
import{_ as o,a as n,b as i}from"./index-
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/allPaths-C1NlZ4tc.js","assets/index-BVMreIQm.js","assets/index-Do7YB6C4.js","assets/index-C2xbrqJV.js","assets/index-Dhl0up3F.css"])))=>i.map(i=>d[i]);
|
2
|
+
import{_ as o,a as n,b as i}from"./index-C2xbrqJV.js";var _=function(e,a){return o(void 0,void 0,void 0,function(){var t;return n(this,function(r){switch(r.label){case 0:return[4,i(()=>import("./allPaths-C1NlZ4tc.js"),__vite__mapDeps([0,1,2,3,4]))];case 1:return t=r.sent().getIconPaths,[2,t(e,a)]}})})};export{_ as allPathsLoader};
|