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

migrate code from googleapis/cloud-profiler-nodejs #2840

Merged
merged 23 commits into from
Nov 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
3b1b835
Add samples with snippets for documentation (#333)
fhinkel Nov 16, 2018
fe6841e
build: add lint script (#362)
jkwlui Dec 11, 2018
c01c3d2
chore: update license headers
JustinBeckwith Nov 25, 2019
2dd7ea7
build!: require node.js 10.x and up (#623)
JustinBeckwith Apr 13, 2020
b069abd
chore: release 4.0.0 (#586)
release-please[bot] Apr 17, 2020
43810ff
chore: release 4.0.1 (#635)
release-please[bot] Jul 10, 2020
6089686
chore: release 4.0.2 (#667)
release-please[bot] Jul 15, 2020
ab681c0
chore: release 4.0.3 (#672)
release-please[bot] Sep 17, 2020
418a402
chore: release 4.1.0 (#711)
release-please[bot] Nov 2, 2020
1f5d07d
chore: release 4.1.1 (#723)
release-please[bot] Mar 16, 2021
9f4b600
chore: release 4.1.2 (#734)
release-please[bot] May 5, 2021
8196107
chore: release 4.1.3 (#755)
release-please[bot] Jul 20, 2021
69dd6bb
chore: release 4.1.4 (#764)
release-please[bot] Sep 14, 2021
de696d5
chore: release 4.1.5 (#774)
release-please[bot] Oct 6, 2021
094760a
chore: release 4.1.6 (#785)
release-please[bot] Dec 20, 2021
52f50f1
chore: release 4.1.7 (#786)
release-please[bot] Dec 20, 2021
71b3d0c
chore(main): release 4.2.0 (#834)
release-please[bot] May 16, 2022
489f69b
build!: update library to use Node 12 (#835)
sofisl Jun 1, 2022
5c45307
chore(main): release 5.0.0 (#839)
release-please[bot] Jun 30, 2022
d45e25d
chore(main): release 5.0.1 (#848)
release-please[bot] Jul 8, 2022
a1c6ae4
chore(main): release 5.0.2 (#850)
release-please[bot] Aug 10, 2022
3d93442
chore(main): release 5.0.3 (#853)
release-please[bot] Sep 26, 2022
a8a6cc5
Merge remote-tracking branch 'migration/main' into cloud-profiler-nod…
grayside Nov 11, 2022
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
19 changes: 19 additions & 0 deletions profiler/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

'use strict';

// [START profiler_setup_nodejs_app_engine]
require('@google-cloud/profiler').start();
// [END profiler_setup_nodejs_app_engine]
25 changes: 25 additions & 0 deletions profiler/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "cloud-profiler-samples",
"version": "0.1.0",
"private": true,
"description": "Google Cloud Profiler samples",
"main": "app.js",
"scripts": {
"test": "echo 'no test yet'"
},
"engines": {
"node": ">=12.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/googleapis/cloud-profiler-nodejs.git"
},
"author": "Google LLC.",
"license": "Apache-2.0",
"dependencies": {
"@google-cloud/profiler": "^5.0.3"
},
"files": [
"*.js"
]
}
24 changes: 24 additions & 0 deletions profiler/snippets.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

'use strict';

// [START profiler_setup_nodejs_compute_engine]
require('@google-cloud/profiler').start({
serviceContext: {
service: 'your-service',
version: '1.0.0',
},
});
// [END profiler_setup_nodejs_compute_engine]