This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: getambassador.io/v2 | |
kind: Mapping | |
metadata: | |
name: webapp | |
namespace: booksapp | |
spec: | |
prefix: "/" | |
service: webapp.booksapp:7000 | |
rewrite: "" | |
cors: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.1 | |
x-kusk: | |
namespace: booksapp | |
service: | |
name: webapp | |
namespace: booksapp | |
port: 7000 | |
cors: | |
origins: | |
- http://foo.example |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
annotations: | |
nginx.ingress.kubernetes.io/cors-allow-headers: Content-Type | |
nginx.ingress.kubernetes.io/cors-allow-methods: POST, GET, OPTIONS | |
nginx.ingress.kubernetes.io/cors-allow-origin: http://foo.example | |
nginx.ingress.kubernetes.io/cors-expose-headers: X-Custom-Header | |
nginx.ingress.kubernetes.io/cors-max-age: "86400" | |
nginx.ingress.kubernetes.io/enable-cors: "true" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: getambassador.io/v2 | |
kind: Mapping | |
metadata: | |
name: cors | |
spec: | |
prefix: /cors/ | |
service: cors-example | |
cors: | |
origins: http://foo.example,http://bar.example | |
methods: POST, GET, OPTIONS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go tool pprof /Users/dobegor/pprof/pprof.smart-worker.samples.cpu.011.pb.gz | |
File: smart-worker | |
Type: cpu | |
Time: Oct 1, 2020 at 2:13pm (EEST) | |
Duration: 32.65s, Total samples = 1.23mins (225.10%) | |
Entering interactive mode (type "help" for commands, "o" for options) | |
(pprof) top | |
Showing nodes accounting for 35660ms, 48.52% of 73500ms total | |
Dropped 1323 nodes (cum <= 367.50ms) | |
Showing top 10 nodes out of 278 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(pprof) top | |
Showing nodes accounting for 42.46s, 56.69% of 74.90s total | |
Dropped 1318 nodes (cum <= 0.37s) | |
Showing top 10 nodes out of 258 | |
flat flat% sum% cum cum% | |
20.63s 27.54% 27.54% 20.83s 27.81% runtime.adjusttimers | |
4.59s 6.13% 33.67% 4.73s 6.32% runtime.timeSleepUntil | |
4.22s 5.63% 39.31% 4.44s 5.93% syscall.Syscall | |
3.11s 4.15% 43.46% 4.85s 6.48% math/big.nat.divBasic | |
2.65s 3.54% 47.00% 6.39s 8.53% runtime.scanobject |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(pprof) top | |
Showing nodes accounting for 50230ms, 67.43% of 74490ms total | |
Dropped 1185 nodes (cum <= 372.45ms) | |
Showing top 10 nodes out of 221 | |
flat flat% sum% cum cum% | |
34160ms 45.86% 45.86% 34380ms 46.15% runtime.adjusttimers | |
3950ms 5.30% 51.16% 4120ms 5.53% syscall.Syscall | |
2870ms 3.85% 55.01% 2990ms 4.01% runtime.findObject | |
2720ms 3.65% 58.67% 6710ms 9.01% runtime.scanobject | |
1600ms 2.15% 60.81% 2520ms 3.38% math/big.nat.divBasic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(pprof) top | |
Showing nodes accounting for 46.38s, 61.72% of 75.15s total | |
Dropped 1158 nodes (cum <= 0.38s) | |
Showing top 10 nodes out of 217 | |
flat flat% sum% cum cum% | |
14.53s 19.33% 19.33% 14.62s 19.45% runtime.adjusttimers | |
6.70s 8.92% 28.25% 6.80s 9.05% runtime.timeSleepUntil | |
5.47s 7.28% 35.53% 5.76s 7.66% runtime.findObject | |
5.44s 7.24% 42.77% 8.63s 11.48% math/big.nat.divBasic | |
5.27s 7.01% 49.78% 13.75s 18.30% runtime.scanobject |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version:1 | |
:debug:sysinfo macOS 10.13 (darwin/17.5.0) arch i386 | |
:debug:sysinfo MacPorts 2.5.2 | |
:debug:sysinfo Xcode 9.4 | |
:debug:sysinfo SDK 10.13 | |
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.13 | |
:debug:main Found Dependency: path: /usr/bin filename: unzip regex: ^unzip$ | |
:msg:main ---> Computing dependencies for opencv:info:main .:debug:main opencv has no conflicts | |
:debug:main Found Dependency: path: /usr/bin filename: unzip regex: ^unzip$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
floatHandler := func(i *vm.Instance, opcode vm.Cell) error { | |
switch opcode { | |
case -vm.OpAdd: | |
rhs := i.Pop() | |
lhs := i.Tos() | |
lhsf := (*float64)(unsafe.Pointer(&lhs)) | |
*lhsf += *(*float64)(unsafe.Pointer(&rhs)) | |
i.SetTos(lhs) |
NewerOlder