├── .gitignore ├── README.md ├── favicon.ico ├── index.html ├── inject.sb3 ├── package.json ├── src ├── app.tsx ├── components │ ├── about.tsx │ ├── analyze_result.tsx │ ├── progress.tsx │ ├── speed_display.tsx │ ├── upload_file.tsx │ └── visibility.tsx ├── main.tsx ├── preact.d.ts ├── utils │ ├── analyzer.ts │ ├── ast.ts │ ├── ast_info.ts │ ├── chart.ts │ ├── inject_sb3.ts │ ├── injections.ts │ ├── sb3json.ts │ ├── sb3loader.ts │ ├── side_effect.ts │ ├── speed_analyzer.tsx │ └── speed_info.ts └── vite-env.d.ts ├── style.css ├── tsconfig.json ├── tsconfig.node.json ├── vite.config.ts └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Scratch Analyzer 2 | a simple scratch project analyzer and profiler 3 | 4 | ## How to use 5 | 1. Visit [scratch-analyzer.netlify.app](scratch-analyzer.netlify.app) or [scratch-analyzer.vercel.app](scratch-analyzer.vercel.app), also you can download the source and run `yarn && yarn dev` 6 | 2. Click `Upload Source` button to upload your scratch project, then it'll start to analyze and automatic download a modified sb3 file 7 | 3. Load the modified sb3 file in your favorate Scratch editor and click the green flag, after a while you can stop the project and save 8 | 4. Click `Upload Marked` button and upload the modified file you just saved and wait for it to analyze 9 | 5. Enjoy :) -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yukitai/scratch_analyzer/da66d2f773cd5d9ba78fa794dea4ddb9e7ebdee0/favicon.ico -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |