~ubuntuone-pqm-team/python-plop/trunk

« back to all changes in this revision

Viewing changes to plop/viewer.py

  • Committer: Ben Darnell
  • Date: 2012-03-02 20:16:31 UTC
  • Revision ID: git-v1:97c4b52971b0146e9cb4615a3e71937edd66dc2f
BetterĀ filteringĀ logic

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    
30
30
    def get(self):
31
31
        total = sum(stack.weights['calls'] for stack in self.graph.stacks)
32
 
        top_stacks = [stack for stack in self.graph.stacks if stack.weights['calls'] > total*.005]
 
32
        top_stacks = self.graph.stacks
 
33
        #top_stacks = [stack for stack in self.graph.stacks if stack.weights['calls'] > total*.005]
33
34
        filtered_nodes = set()
34
35
        for stack in top_stacks:
35
36
            filtered_nodes.update(stack.nodes)
55
56
    else:
56
57
        graph = CallGraph.load(options.data)
57
58
    logging.info("loaded call graph")
 
59
    import tornado.autoreload
 
60
    tornado.autoreload.watch(options.data)
58
61
 
59
62
    handlers = [
60
63
        ('/', IndexHandler),