mirror of
https://github.com/jlfwong/speedscope.git
synced 2024-11-23 06:22:41 +03:00
3fc631cf79
The problem was that I was using `canvas.getBoundingClientRect()` to get the size to resize to, but that was changing as the result of CSS properties set on the canvas! Instead, we take the measurements of its container now which is set to fill the screen, and the canvas has its size entirely managed by `graphics.ts`. |
||
---|---|---|
.. | ||
gl | ||
import | ||
lib | ||
store | ||
typings | ||
views | ||
README.md | ||
speedscope.tsx |
Speedscope TypeScript source
This directory contains the bulk of speedscope's source code.
Subdirectories
gl/
: WebGL code. This includes e.g. the code to render flamecharts.import/
: Code to import profiles from varous profilers into speedscope. This include e.g. the code to import Chrome performance profiles.lib/
: Mostly dependency-less utilities. This includes e.g. an LRU cache implementation, basic linear algebra classes, and the definition of speedscope's file format.store/
: Speedscope's application state management. Implemented usingredux
.typings/
: TypeScript definition filesviews/
: View code to generate the HTML & CSS used to construct the UI. Implemented usingpreact
andaphrodite
. Also contains code mapping from theredux
store to views usingpreact-redux