This repository was archived by the owner on Jan 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
* Copyright (C) 2014 TopCoder Inc., All Rights Reserved.
3
- *
4
- * @version 1.1
5
- * @author Ghost_141
6
- * Changes in 1.1:
7
- * - Add technologies and platforms filter.
8
3
*/
9
4
"use strict" ;
10
5
var heapdump = require ( 'heapdump' ) ;
11
6
12
- var async = require ( 'async' ) ;
13
- var _ = require ( 'underscore' ) ;
14
- var fs = require ( 'fs' ) ;
15
- var BadRequestError = require ( '../errors/BadRequestError' ) ;
16
- var UnauthorizedError = require ( '../errors/UnauthorizedError' ) ;
17
- var ForbiddenError = require ( '../errors/ForbiddenError' ) ;
18
-
19
-
20
7
exports . dumpMemory = {
21
8
name : 'dumpMemory' ,
22
9
description : 'dump memory' ,
23
10
inputs : {
24
11
required : [ ] ,
25
12
optional : [ ]
26
13
} ,
27
- // blockedConnectionTypes: [],
28
- //outputExample: {},
29
14
version : 'v2' ,
30
- // transaction: 'read',
31
- // databases: [],
32
- // outputExample: {
33
- // string: "hello"
34
- // },
35
15
run : function ( api , connection , next ) {
36
16
if ( process . env . ADMIN_API_KEY && connection . params . apiKey === process . env . ADMIN_API_KEY ) {
37
17
heapdump . writeSnapshot ( function ( err , filename ) {
You can’t perform that action at this time.
0 commit comments