This repository was archived by the owner on Feb 20, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 "system-test" : " c8 --no-clean mocha build/system-test/test-*.js --timeout=60000" ,
1111 "samples-test" : " echo 'no sample tests'" ,
1212 "clean" : " gts clean" ,
13- "compile" : " tsc -p ." ,
13+ "compile" : " tsc -p . && cp -R protos build " ,
1414 "fix" : " gts fix" ,
1515 "lint" : " gts check" ,
1616 "docs" : " jsdoc -c .jsdoc.js" ,
1717 "prelint" : " cd samples; npm link ../; npm install" ,
1818 "prepare" : " npm run compile" ,
1919 "pretest" : " npm run compile" ,
20+ "proto" : " mkdir -p protos && pbjs -t static-module -w commonjs -o protos/profiler.js third_party/googleapis/google/devtools/cloudprofiler/v2/profiler.proto && pbts -o protos/profiler.d.ts protos/profiler.js" ,
2021 "license-check" : " jsgl --local ." ,
2122 "docs-test" : " linkinator docs" ,
2223 "predocs-test" : " npm run docs" ,
3637 "extend" : " ^3.0.2" ,
3738 "gcp-metadata" : " ^4.0.0" ,
3839 "parse-duration" : " ^1.0.0" ,
39- "pprof" : " 3.2.1 " ,
40+ "pprof" : " 3.2.0 " ,
4041 "pretty-ms" : " ^7.0.0" ,
41- "protobufjs" : " ~7.2.4 " ,
42+ "protobufjs" : " ~7.2.0 " ,
4243 "semver" : " ^7.0.0" ,
4344 "teeny-request" : " ^8.0.0"
4445 },
6869 },
6970 "files" : [
7071 " build/src" ,
71- " build/third_party/cloud-debug-nodejs"
72+ " build/third_party/cloud-debug-nodejs" ,
73+ " build/protos"
7274 ],
7375 "nyc" : {
7476 "exclude" : [
77+ " protos" ,
7578 " build/test" ,
7679 " build/system-test"
7780 ]
Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ import {
2020 DecorateRequestOptions ,
2121} from '@google-cloud/common' ;
2222import { heap as heapProfiler , SourceMapper , time as timeProfiler } from 'pprof' ;
23- import { perftools } from 'pprof/proto/profile' ;
2423import * as msToStr from 'pretty-ms' ;
2524import { promisify } from 'util' ;
2625import * as zlib from 'zlib' ;
2726import * as r from 'teeny-request' ;
2827
28+ import { perftools } from '../protos/profile' ;
2929import { ProfilerConfig } from './config' ;
3030import { createLogger } from './logger' ;
3131
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import * as nock from 'nock';
1919import { promisify } from 'util' ;
2020import * as zlib from 'zlib' ;
2121
22- import { perftools } from 'pprof/proto /profile' ;
22+ import { perftools } from '../protos /profile' ;
2323import { RequestProfile } from '../src/profiler' ;
2424
2525const API = 'https://cloudprofiler.googleapis.com/v2' ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import * as path from 'path';
1717import { SourceMapGenerator } from 'source-map' ;
1818import * as tmp from 'tmp' ;
1919
20- import { perftools } from 'pprof/proto /profile' ;
20+ import { perftools } from '../protos /profile' ;
2121import { TimeProfile } from '../src/v8-types' ;
2222
2323const timeLeaf1 = {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import * as sinon from 'sinon';
2626import { promisify } from 'util' ;
2727import * as zlib from 'zlib' ;
2828
29- import { perftools } from 'pprof/proto /profile' ;
29+ import { perftools } from '../protos /profile' ;
3030import { ProfilerConfig } from '../src/config' ;
3131import {
3232 parseBackoffDuration ,
You can’t perform that action at this time.
0 commit comments