Skip to content
프로젝트

소개

Chrome에서 내보낸 CPU 프로파일을 callgrind 형식으로 변환합니다.

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

chrome2calltree

Convert CPU profiles exported from Chrome to callgrind format.

uwflow.com example

Installation

This is only useful if you have KCacheGrind or QCacheGrind installed.

To install KCacheGrind on Linux:

sudo apt-get install kcachegrind

To install QCacheGrind on OS X:

brew install qcachegrind

Once you have that, grab the npm package:

npm install -g chrome2calltree

Usage

Collect a Chrome CPU profile either by using console.profile() or by clicking buttons in the Developer Tools. Save the profile somewhere to disk.

save Chrome CPU profile

Assuming you have KCacheGrind or QCacheGrind installed, you can then load your CPU profile using chrome2calltree. Note that it might open in the background, so you might have to manually switch applications.

chrome2calltree -k -i ~/Downloads/CPU-20131213T155541.cpuprofile

qcachegrind showing a CPU profile

If you want to save the converted callgrind output for later, you can do that using the -o flag.

chrome2calltree -i ~/Downloads/CPU-20131213T155541.cpuprofile -o foobar.profile
usage: chrome2calltree [-h] [-v] [-o OUTFILE] [-i INFILE] [-k]

Convert CPU profiles exported from Chrome to callgrind format

Optional arguments:
  -h, --help            Show this help message and exit.
  -v, --version         Show program's version number and exit.
  -o OUTFILE, --outfile OUTFILE
                        Save calltree stats to OUTFILE. If omitted, writes to
                        standard out.
  -i INFILE, --infile INFILE
                        Read chrome CPU profile from INFILE. If omitted,
                        reads from standard in.
  -k, --kcachegrind     Run the kcachegrind tool on the converted data.
                        Unless combined with the -o flag, will write output
                        to a temporary file and remove it after kcachegrind
                        exits.

관련 프로젝트 살펴보기

불러오는 중…