Docsity

Software Visualization - Lecture Slides | CS 7450, Study notes of Computer Science

Partial preview of the text

Download Software Visualization - Lecture Slides | CS 7450 and more Study notes Computer Science in PDF only on Docsity!

Software Visualization

CS 7450 - Information Visualization

March 29, 2005

John Stasko

“The use of the crafts of typography,

graphic design, animation, and

cinematography with modern human-

computer interaction and computer

graphics technology to facilitate both

the human understanding and effective

use of computer software.”

Price, Baecker and Small, ‘

Software Visualization

• Definition

Spring 2005 CS 7450 3

Challenge

• Software clearly is abstract data

• Unlike much information visualization,

however, software is often dynamic, thus

requiring our visualizations reflect the

time dimension

− History views

− Animation

Subdomains

• Two main subareas of software

visualization

− Program visualization - Use of visualization to

help programmers, coders, developers.

Software engineering focus

− Algorithm visualization - Use of visualization

to help teach algorithms and data structures.

Pedagogy focus

Spring 2005 CS 7450 7

Program Visualization

• Can be as simple as enhanced views of

program source

• Can be as complex as views of the

execution of a highly parallel program, its

data structures, run-time heap, etc.

Enhanced Code Views

Primarily used as a

documentation aid

Spring 2005 CS 7450 9

SeeSoft System

• Pulled-back, far away view of source code

• Map one line of source to one line of

pixels

− Can indicate line indentation, etc.

• Like taping your source code to the wall,

walking far away, then looking back at it

Eick, Steffen and Sumner

IEEE ToSE ‘

System View

15,000 lines

of code in

52 files

Video

Spring 2005 CS 7450 13

Tarantula View

Demo

Stepping Up

• Next step in program visualization is to

help debugging and performance

optimization by visualizing program

executions

− Data, data structures, run-time heap,

memory, control flow, data flow, hot spots, ...

Spring 2005 CS 7450 15

Graph Visualization

• Area that we’ve already studied which is

very important to SV

• Graphs pop up everywhere in software

• Common use: Visualize a call graph,

visualize a flow chart, ...

Sample CallGraph View

Spring 2005 CS 7450 19

Dynamic Call Graph View

Currently active On call stack

Class Browser

Spring 2005 CS 7450 21

Heap View

Color could be

When allocated

Block size

Where allocated

3D Call Graph

Selected file

Collapsed file

Groups of calls

Spring 2005 CS 7450 25

Call tree

Accumulated

process times

Process

run history

Kernel

performance

stats

Code

views

Memory view

Spring 2005 CS 7450 27

Utility

• Papers about PV provide a number of

specific examples of how tool was used to

help find and diagnose performance

problems

• Authors say that one negative is just

limitations of workstation display---need

to open and align lots of windows and

that becomes difficult

Commercial Systems

• A number of commercial program

development environments have begun to

incorporate program visualization tools

such as these

− Majority are PC-based

• Has not become as wide-spread as I

would have anticipated

Spring 2005 CS 7450 31

POLKA

• We developed a system, POLKA, that was

designed to help people build

visualizations of concurrent programs

− Used for both program and algorithm

visualization

− Used for different programming models:

message passing, shared memory threads, ...

Stasko & Kraemer

JPDC ‘

Message Passing Systems

PVM/Conch

Topol, Stasko, Sunderam

IJPDSN ‘

Spring 2005 CS 7450 33

Shared Memory Threads

Pthreads Zhao & Stasko TR ‘

Intermission - Projects

• Poster session

− 4 options

• Midway reports summary

Spring 2005 CS 7450 37

Sorting Out Sorting

• Seminal work in area

• 30 minute video produced by Ron Baecker

at Toronto in 1981

• Illustrates and compares nine sorting

algorithms as they run on different data

sets

SoS Views

Video

Spring 2005 CS 7450 39

Balsa

• First main system in

area

• Used in “electronic

classroom” at Brown

• Introduced use of

multiple views and

interesting event

model

M. Brown

Computer ‘

Example Animation