Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add speedscope #27697

Merged
merged 9 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions recipes/speedscope/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh

set -exuo pipefail

if [[ "${target_platform}" == "osx-arm64" ]]; then
export npm_config_arch="arm64"
fi
# Don't use pre-built gyp packages
export npm_config_build_from_source=true

rm $PREFIX/bin/node
ln -s $BUILD_PREFIX/bin/node $PREFIX/bin/node

export NPM_CONFIG_USERCONFIG=/tmp/nonexistentrc
pnpm import
pnpm install --prod
moritzwilksch marked this conversation as resolved.
Show resolved Hide resolved
pnpm pack
npm install -g speedscope-${PKG_VERSION}.tar.gz

# generate third party licenses file
pnpm licenses list --json --prod | pnpm-licenses generate-disclaimer --prod --json-input --output-file=third-party-licenses.txt
38 changes: 38 additions & 0 deletions recipes/speedscope/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{% set name = "speedscope" %}
{% set version = "1.20.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/jlfwong/speedscope/archive/refs/tags/v{{ version }}.tar.gz
sha256: 9f37ab533d5332c2e4c5b62dab79eb9bcf0d6bd5b3dd0bcb821ca36c1a58c7e0

build:
number: 0

requirements:
build:
- nodejs
host:
- nodejs
- pnpm >=8.6.12
- pnpm-licenses
run:
- nodejs
test:
commands:
- speedscope --help

about:
home: https://github.com/jlfwong/speedscope
summary: A fast, interactive web-based viewer for performance profiles.
license: MIT
license_file:
- LICENSE
- third-party-licenses.txt

extra:
recipe-maintainers:
- moritzwilksch
Loading