node
copy this script
const fs = require('fs/promises'); | |
const process = require('process'); | |
const { exec } = require('child_process'); | |
const [SYMBOLS_DIR, TOMBSTONE_FILE_NAME] = process.argv.slice(2); | |
const FILE_OPTIONS = { encoding: 'utf-8' }; | |
const TOMBSTONE_THREAD_DELIMITER = '--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---\n'; | |
const NDK_STACK_DELIMITER = '*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\n'; | |
function run(command) { |
const fs = require('fs'); | |
const options = { encoding: 'utf-8' }; | |
const writeStream = fs.createWriteStream('out2.txt', options); | |
const buffers = []; | |
let handled = 0; | |
function handler(error, buffer) { | |
if (error) { |