Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coco
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
coco
Commits
f046a173
Commit
f046a173
authored
Mar 20, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] Remove debug message
parent
c2a1312f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
app.py
coco/app.py
+0
-14
No files found.
coco/app.py
View file @
f046a173
...
...
@@ -8,9 +8,7 @@ import time
import
threading
import
socket
import
json
import
tracemalloc
import
gc
from
jms.service
import
AppService
from
.config
import
Config
...
...
@@ -68,8 +66,6 @@ class Coco:
self
.
replay_recorder_class
=
None
self
.
command_recorder_class
=
None
self
.
_task_handler
=
None
tracemalloc
.
start
()
self
.
snapshot
=
tracemalloc
.
take_snapshot
()
@property
def
name
(
self
):
...
...
@@ -134,16 +130,6 @@ class Coco:
def
heartbeat
(
self
):
_sessions
=
[
s
.
to_json
()
for
s
in
self
.
sessions
]
tasks
=
self
.
service
.
terminal_heartbeat
(
_sessions
)
gc
.
collect
()
snapshort2
=
tracemalloc
.
take_snapshot
()
top_stats
=
snapshort2
.
compare_to
(
self
.
snapshot
,
'traceback'
)
print
(
"[ Top 10 differences ]"
)
for
stat
in
top_stats
[:
10
]:
print
(
stat
.
count_diff
)
# gc.collect()
# print(objgraph.show_most_common_types())
# for i in ("User", "Client", "Session", "ProxyServer", "Transport", "Channel", "InteractiveServer", "SSHInterface", "Server", "Asset"):
# print("{} objects: {}".format(i, len(objgraph.by_type(i))))
if
tasks
:
self
.
handle_task
(
tasks
)
if
tasks
is
False
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment