Skip to content

Commit

Permalink
Add profiler frontend code
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyixin-cmd authored Aug 17, 2022
1 parent b279127 commit 4a2b1b6
Show file tree
Hide file tree
Showing 79 changed files with 17,985 additions and 200 deletions.
8 changes: 4 additions & 4 deletions frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ module.exports = {
},
plugins: ['license-header'],
rules: {
'sort-imports': 'warn',
'no-console': 'warn'
// 'sort-imports': 'warn',
// 'no-console': 'warn'
// 'license-header/header': ['error', './license-header.js']
},
overrides: [
Expand All @@ -39,7 +39,7 @@ module.exports = {
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'error'
'@typescript-eslint/no-explicit-any': 'off'
}
},
{
Expand All @@ -66,7 +66,7 @@ module.exports = {
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off'
}
Expand Down
13 changes: 8 additions & 5 deletions frontend/packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,19 @@
"dist"
],
"dependencies": {
"@material-ui/core": "^4.12.4",
"@snowpack/plugin-sass": "^1.4.0",
"@tippyjs/react": "4.2.5",
"@visualdl/icons": "2.2.1",
"@visualdl/netron": "2.2.1",
"@visualdl/wasm": "2.2.1",
"antd": "^4.21.0",
"bignumber.js": "9.0.1",
"classnames": "2.3.1",
"d3": "7.0.1",
"d3-format": "3.0.1",
"echarts": "4.9.0",
"echarts-gl": "1.1.2",
"eslint-plugin-simple-import-sort": "^7.0.0",
"echarts": "^5.3.3",
"echarts-gl": "^2.0.9",
"eventemitter3": "4.0.7",
"file-saver": "2.0.5",
"i18next": "20.6.0",
Expand Down Expand Up @@ -79,11 +81,13 @@
"react-table-sticky": "1.1.3",
"react-toastify": "8.0.2",
"redux": "4.1.1",
"snowpack-plugin-less": "^1.0.7",
"styled-components": "5.3.1",
"swr": "1.0.1",
"three": "0.132.2",
"tippy.js": "6.3.1",
"umap-js": "1.3.3"
"umap-js": "1.3.3",
"use-deep-compare-effect": "^1.8.1"
},
"devDependencies": {
"@baiducloud/sdk": "1.0.0-rc.31",
Expand All @@ -97,7 +101,6 @@
"@types/chai": "4.2.21",
"@types/d3": "7.0.0",
"@types/d3-format": "3.0.1",
"@types/echarts": "4.9.10",
"@types/file-saver": "2.0.3",
"@types/lodash": "4.14.172",
"@types/mime-types": "2.1.1",
Expand Down
1 change: 1 addition & 0 deletions frontend/packages/core/public/images/hover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/packages/core/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"graphDynamic": "dynamic",
"graphStatic": "static",
"high-dimensional": "High Dimensional",
"profiler":"performance analysis",
"histogram": "Histogram",
"hyper-parameter": "Hyper Parameters",
"image": "Image",
Expand Down
108 changes: 108 additions & 0 deletions frontend/packages/core/public/locales/en/profiler.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"Overview-view": "Overview",
"time-consuming": "Execution Summary",
"Expand-view": "Details",
"stage-view": "Details",
"training-step-time": "Execution Time Breakdown",
"performance-consumption": "Event Summary",
"consumption-distribution": "Event Time Breakdown",
"custom-events": "UserDefined Summary",
"Configuration-details": "Configuration",
"number-processes": "Number of Worker(s)",
"Equipment-type": "Device Type",
"Device-Details": "Device Summary",
"Process-utilization": "Process Utilization",
"system-utilization": "System Utilization",
"computing-power": "Compute Capability",
"Utilization": "Utilization",
"Traffic-Processor-Efficiency": "Est. SM Efficiency",
"Traffic-processor-occupancy": "Est. Achieved Occupancy",
"usage-time": "Kernel Time using Tensor Cores",
"step": "step",
"timeConsuming": "time consuming",
"Number-calls": "Calls",
"duration": "duration",
"Overall-proportion": "Overall proportion",
"stage": "Event Name",
"number-calls": "Calls",
"total-time": "Total Time",
"average-time": "Average Time",
"longest-time": "Max Time",
"shortest-time":"Min Time",
"percentage":"Percentage",
"Operator-view":"Operator View",
"Time-profile":"Operator Pie",
"Kernel-profile":"Kernel Pie",
"Time-details":"Operator Table",
"show-all-operators":"All operators",
"show-Top-operators":"Top operators to show",
"By-operator-name":"Operator Name",
"operator-shape":"Operator Name + Input Shape",
"input-shape":"input shape",
"call-volume":"Calls",
"operator":"Operator Name",
"CPU-time":"CPU",
"GPU-time":"GPU",
"nuclear-view":"Kernel View",
"show-all-kernels":"show all kernels",
"show-Top-kernels":"Show Top Kernels",
"group-by-core":"Kernel Name",
"Group-operator":"Kernel Name + Attributes",
"nuclear-name":"Kernel Name",
"sm-average":"Mean Blocks Per SM",
"average-occupancy":"Mean Achieved Occupancy",
"use-tensor-core":"Kernel Used Tensor Cores",
"Distribution-view":"Distributed View",
"Device-Information":"Device Information",
"comparisons":"Computation/Communication Overview",
"training-steps":"Step",
"memory-view":"Memory View",
"equipment":"Device",
"timestamp":"timestamp",
"memory-size":"memory size",
"event-name":"Event Name",
"memory-usage":"memory usage",
"storage-type":"Memory Type",
"MemorAddr":"Memory address",
"EventName":"Event Name",
"AllocationCount":"Allcation Counts",
"FreeCount":"Release Counts",
"AllocationSize":"Allocation Size",
"FreeSize":"Release Size",
"IncreasedSize":"Increased Size",
"AllocatedEvent":"Allocation Event",
"AllocatedTimestamp":"Allocation Time",
"FreeEvent":"Release Event",
"FreeTimestamp":"Release Time",
"Duration":"Duratrion",
"Size":"Size",
"search-event-name":"search event name",
"Search-Kernal":"Search kernel name",
"Search-operator":"Search operator name",
"data-flow":"Runs",
"view":"Views",
"process":"Workers",
"process-span":"Spans",
"time-unit":"Timeunit",
"Allocated":"Allocated",
"Reserved":"Reserved",
"PeakAllocated":"Peak Allocated",
"PeakReserved":"Peak Reserved",
"NoGPUdata":"No GPU data yet",
"Cor-operator":"Operator",
"thread-grid":"Grid",
"thread-block":"Block",
"Thread-registers":"Register Per Thread",
"Shared-memory":"Shared Memory",
"Yes":"Yes",
"No":"No",
"performance-analysis":"Profiler",
"Tensorcore-usage":"Tensor Cores Utilization",
"Kernel-details":"Kernel Table",
"proportion":"proportion"





}
1 change: 1 addition & 0 deletions frontend/packages/core/public/locales/zh/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"graphDynamic": "动态",
"graphStatic": "静态",
"high-dimensional": "数据降维",
"profiler": "性能分析",
"histogram": "直方图",
"hyper-parameter": "超参可视化",
"image": "图像",
Expand Down
108 changes: 108 additions & 0 deletions frontend/packages/core/public/locales/zh/profiler.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"Overview-view": "总览视图",
"time-consuming": "运行耗时",
"Expand-view": "展开查看耗时详情",
"stage-view": "各阶段耗时详情",
"training-step-time": "训练步数耗时",
"performance-consumption": "性能消耗",
"consumption-distribution": "模型各阶段消耗分布",
"custom-events": "自定义事件耗时",
"Configuration-details": "配置详情",
"number-processes": "进程数",
"Equipment-type": "设备类型",
"Device-Details": "设备详情",
"Process-utilization": "进程利用率",
"system-utilization": "系统利用率",
"computing-power": "算力",
"Utilization": "利用率",
"Traffic-Processor-Efficiency": "流处理器效率",
"Traffic-processor-occupancy": "流处理器占用率",
"usage-time": "Tensor Cores使用时间占比",
"step": "",
"timeConsuming": "耗时",
"Number-calls": "调用量(次)",
"duration": "持续时间",
"Overall-proportion": "整体占比",
"stage": "事件名称",
"number-calls": "调用次数",
"total-time": "总耗时",
"average-time": "平均耗时",
"longest-time": "最长耗时",
"shortest-time":"最短耗时",
"percentage":"百分比",
"Operator-view":"算子视图",
"Time-profile":"耗时概况",
"Kernel-profile":"耗时概况",
"Time-details":"算子详情",
"Kernel-details":"核详情",
"show-all-operators":"显示全部算子",
"show-Top-operators":"显示Top算子",
"By-operator-name":"按算子名称",
"operator-shape":"按算子名称+输入形状",
"input-shape":"输入形状",
"call-volume":"调用量",
"operator":"算子名称",
"CPU-time":"CPU耗时",
"GPU-time":"GPU耗时",
"nuclear-view":"核视图",
"show-all-kernels":"显示全部内核",
"show-Top-kernels":"显示Top内核",
"group-by-core":"按核名称分组",
"Group-operator":"按核名称+核属性分组",
"nuclear-name":"核名称",
"sm-average":"sm平均线程块数量",
"average-occupancy":"平均占用率",
"use-tensor-core":"是否使用Tensor Cores",
"Distribution-view":"分布式视图",
"Device-Information":"设备信息",
"comparisons":"Computation和communication的耗时对比",
"training-steps":"训练步数",
"memory-view":"显存视图",
"equipment":"设备",
"timestamp":"时间戳",
"memory-size":"内存大小",
"event-name":"事件名称",
"memory-usage":"内存使用量",
"storage-type":"存储类型",
"MemorAddr":"存储地址",
"EventName":"事件名",
"AllocationCount":"分配次数",
"FreeCount":"释放次数",
"AllocationSize":"分配大小",
"FreeSize":"释放大小",
"IncreasedSize":"净增量",
"AllocatedEvent":"分配事件",
"AllocatedTimestamp":"分配时间",
"FreeEvent":"释放事件",
"FreeTimestamp":"释放时间",
"Duration":"持续时间",
"Size":"大小",
"search-event-name":"搜素事件名",
"Search-operator":"搜索算子名称",
"Search-Kernal":"搜索核名称",
"performance-analysis":"性能分析",
"data-flow":"数据流",
"view":"视图",
"process":"进程",
"process-span":"数据索引",
"time-unit":"时间单位",
"Allocated":"已分配",
"Reserved":"已预留",
"PeakAllocated":"最大已分配",
"PeakReserved":"最大已预留",
"NoGPUdata":"暂无GPU数据",
"Cor-operator":"对应算子",
"thread-grid":"线程网格",
"thread-block":"线程块",
"Thread-registers":"线程平均寄存器数量",
"Shared-memory":"共享显存量",
"Yes":"",
"No":"",
"Tensorcore-usage":"Tensor core利用率",
"proportion":"占比"





}
2 changes: 2 additions & 0 deletions frontend/packages/core/public/static/index.html

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions frontend/packages/core/public/static/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export async function render() {
document.location.href = 'index.html';
}
Loading

0 comments on commit 4a2b1b6

Please sign in to comment.