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
| # Copy of https://daniellockyer.com/how-to-capture-a-cpu-profile-in-nodejs/ | |
| # Find the process ID of the Node program | |
| ps -H aux | |
| # Enter the Node inspector | |
| node inspect -p <pid> | |
| # Start profiling: | |
| profile |
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
| { | |
| "BZ2": { | |
| "name": "UAP", | |
| "names": { | |
| "abbreviation": "UAP", | |
| "fullName": "Access Point", | |
| "sku": "UAP" | |
| }, | |
| "type": "uap", | |
| "compliance": { |
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
| import 'dart:io'; | |
| void main() { | |
| var discoveryPort = 10001; | |
| var discoveryBroadcast = InternetAddress('255.255.255.255'); | |
| var discoveryMulticast = InternetAddress('233.89.188.1'); | |
| RawDatagramSocket.bind(InternetAddress.anyIPv4, discoveryPort).then((RawDatagramSocket udpSocket) { | |
| udpSocket.broadcastEnabled = true; | |
| udpSocket.listen((e) { |