Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyrasite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
pyrasite
Commits
448c3bbf
Commit
448c3bbf
authored
Feb 16, 2012
by
Luke Macken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reset our graphs when we switch processes
parent
48395120
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
pyrasite/tools/gui.py
pyrasite/tools/gui.py
+15
-0
No files found.
pyrasite/tools/gui.py
View file @
448c3bbf
...
@@ -516,6 +516,21 @@ class PyrasiteWindow(Gtk.Window):
...
@@ -516,6 +516,21 @@ class PyrasiteWindow(Gtk.Window):
title
=
model
.
get_value
(
treeiter
,
0
)
title
=
model
.
get_value
(
treeiter
,
0
)
proc
=
model
.
get_value
(
treeiter
,
1
)
proc
=
model
.
get_value
(
treeiter
,
1
)
self
.
proc
=
proc
self
.
proc
=
proc
if
self
.
pid
and
proc
.
pid
!=
self
.
pid
:
global
cpu_intervals
,
mem_intervals
,
write_intervals
,
read_intervals
global
cpu_details
,
mem_details
,
read_count
,
read_bytes
,
thread_totals
global
write_count
,
write_bytes
,
thread_intervals
,
thread_colors
cpu_intervals
=
[
0.0
]
mem_intervals
=
[]
write_intervals
=
[]
read_intervals
=
[]
cpu_details
=
mem_details
=
''
read_count
=
read_bytes
=
write_count
=
write_bytes
=
0
thread_intervals
=
{}
thread_colors
=
{}
thread_totals
=
{}
self
.
pid
=
proc
.
pid
self
.
pid
=
proc
.
pid
# Analyze the process
# Analyze the process
...
...
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