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
| -----BEGIN PGP PUBLIC KEY BLOCK----- | |
| mQINBFv85VoBEADNf1SgGyAsnWcoIVxsjJR0clyo67LEfVEJnfsuiwBasbkEzO6v | |
| 4aweyweVIYXuEf8H4Az1t+CPoNqwf4fmJ9Pp9hBItTWvlamGcpfKrrRiruqIEqir | |
| OJoNyQrNSt6W2lgskbo4KErqmRLrpbQFMK9lfwkOt58m18ujOJWMR2hppHClJlPr | |
| ZGNQ9XKe/aIV5sO9FVmBA/36+pZDbbvc3viLisdcjrEjx/utlpQrp/7QE40aRuBC | |
| ImhuiVW45RMvUel/v7vszPqCDKzFF3mvxShSZedHxQ5DiASRoW77eNXpaUDuBs0j | |
| /hk7SmD0kqNVxCKJkd3HAp+3YKIS/d7zcCa7263uGnxxnjbPyd5eAvbDi+8IDyF8 | |
| JO4bd7wZcJezwPx4MCKEIyonERU+tv6vCdfQHMESYEt5IB608k1XLDTbIiSbfLIh | |
| lea0+rpQ4+uQCc2YSkgkV9FarjLpxVHA9MU8q3vL4KvE+tI8LLILEyN5dpO6Ck0/ |
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
| package eu.javaspecialists.tjsn.memory; | |
| import java.lang.instrument.Instrumentation; | |
| import java.lang.reflect.*; | |
| import java.util.*; | |
| public class MemoryCounterAgent { | |
| private static Instrumentation instrumentation; | |
| /** Initializes agent */ |
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
| <project> | |
| ... | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-jar-plugin</artifactId> | |
| ... | |
| <configuration> | |
| <archive> |
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
| const assert = require('assert'); | |
| try { | |
| assert(false); // no matter what | |
| } catch(exc) { | |
| console.log('CAUGHT=>', exc); | |
| } |
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
| -----BEGIN PGP PUBLIC KEY BLOCK----- | |
| mQINBFvfxuEBEADRdfR5vENsbYa8tTQxuZHGVWIsNiVwECISeqL04/wh01wEZs/r | |
| GYLx61Mhjb1KviUQB/cufXSptvC3Ka2hpBUT/1m0jTAaKpUXY7GjE/WU/U2sEykJ | |
| uKxUJTAj4UhQzCjsFCbWTHrg8wXX13mV4lgZITlBX5UJ9079xzpXfoq9vcnJTjR2 | |
| wsp8fOErEuBExA+dBd2L1buZrvt74lI73wovo0zOmQPre67XryrHrhaZo6K5ratk | |
| fXPKruYR7pMwDwl8IPWFmBq86f04q85wRkjYnyCrdgAf87ju6UlZMNqr1EV/pscZ | |
| kt1oM/btqAYh2z0FhEj0cNNBuo3bN143SPF2bYGKzivO3FM2xt8lVHHrPrzMko2F | |
| ihEzwpsbSlB1vn9j465WZ+gzyRQsanNqWW/hTB8fF9V3wm84K0AfhPafaQKgF0r7 | |
| 9pHlb31Ltrp8XwH74jml6zlbjmV/ccDBzi3ylfKD6c4k7Q9MyfCPINMFa1Nz+rsn |
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
| GAVDDMERHUMZN72JSKZ6REEDRF24VOVIV6JYEEQP5JB7NOKW4RR63CIR |
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
| -----BEGIN PGP PUBLIC KEY BLOCK----- | |
| mQENBFuzZ/ABCADcc+6Pe0SrFEnO8ldEFvGjnPRpuQtsnEvf1Jz4/swkeH4PX1kd | |
| xGW2Pn21+k277+gdi8GTxBWrsnEoYi2tLl8BdQg9nWTEIZBkeG7pCW2ikKJTSUKs | |
| EM1Lfq5v82lHRBvRNI2cPJR9GzDkiG3AxZoNuDDY5PMT9EejTZdA9AaDqnXVgxM+ | |
| V379Hbdo20YLUKsLhJRI8PxjfzB7UyrPAKByeAv06KQ9VG4+wduqr2XZXEAs2KhB | |
| FIA11WGlcLxCIi3tLai7BnldI4i3G5Qdvm+JSPZXntC8X7uuQjD8LWEpAZVXlyyA | |
| E6M0nAYm8c1YjKPtI57MetgEzbn/qTQc0bAFABEBAAG0KUpvbmctSHlvdWsgWXVu | |
| IDxqb25naHlvdWsueXVuQHN0cmVhbWkuY28+iQFOBBMBCAA4FiEEWA+wPnGhBcmh | |
| zO1b8bvqVNtqawIFAluzZ/ACGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQ |
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
| -----BEGIN PGP MESSAGE----- | |
| hQEMA2sB9jqoDwLFAQgAjdY9zofQchYHLCRQyeHPoaL156ztw5VLSAn/r4IuvpH3 | |
| OBSPZS5KD7xKYl7BR83N/WTdlk/kqcyEsii4H5uHP1G/8UeufWry8TOBiUXyYBCS | |
| dDhp4RkCOVe/13AoXRjFZ/Z43N+XCxX+cQJZ8WHRH8sMvL95aXncg7QW557c3j8I | |
| Xkqkh48AkSrDcg7SO9PD/L9nxhKeNR4UNvxu6N/wHj3OWc1DFYdo5aLnQOrqjr8k | |
| Qk+QZli2eiHgjWuLp/6BSgpdQIDT3i5D9lglPuuRE1KpFUO6HLUdtxfdGcjVK6S6 | |
| y6ks091di4c6+MQbBPN8YpOqJwUxyQdLhOVSSmWyyNLpAfPcxzOKocJK2cgsENv7 | |
| 9m7+uNiZC3wqq0tM6nfVQHAOEBRdfzmfQ4GJLys4ckOH4TQaMe3mrYl9eFvgT1fK | |
| kEn8k8wQ2GH3363AVVPfc58YRIzReuq6WqDNJJnCI2iOgpFllikjtIvzb1fJfKbX |
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
| format: winston.format.combine( | |
| winston.format.timestamp(), | |
| winston.format.printf(info => { | |
| return `${info.timestamp} ${info.level}: ${info.message}`; | |
| }) | |
| ), |
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
| use strict; | |
| use warnings; | |
| use Test::More; | |
| use Data::Printer; | |
| use String::Util qw(trim); | |
| use Test::Deep; | |
| { | |
| my $s = trim(' abc 1234 -1234 '); |