profile.hh (2680:246e7104f744) profile.hh (3570:aacc19068f25)
1/*
2 * Copyright (c) 2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 19 unchanged lines hidden (view full) ---

28 * Authors: Nathan Binkert
29 */
30
31#ifndef __CPU_PROFILE_HH__
32#define __CPU_PROFILE_HH__
33
34#include <map>
35
1/*
2 * Copyright (c) 2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 19 unchanged lines hidden (view full) ---

28 * Authors: Nathan Binkert
29 */
30
31#ifndef __CPU_PROFILE_HH__
32#define __CPU_PROFILE_HH__
33
34#include <map>
35
36#include "arch/stacktrace.hh"
36#include "cpu/static_inst.hh"
37#include "sim/host.hh"
37#include "cpu/static_inst.hh"
38#include "sim/host.hh"
38#include "arch/stacktrace.hh"
39
40class ThreadContext;
41
42class ProfileNode
43{
44 private:
45 friend class FunctionProfile;
46

--- 14 unchanged lines hidden (view full) ---

61class Callback;
62class FunctionProfile
63{
64 private:
65 Callback *reset;
66 const SymbolTable *symtab;
67 ProfileNode top;
68 std::map<Addr, Counter> pc_count;
39
40class ThreadContext;
41
42class ProfileNode
43{
44 private:
45 friend class FunctionProfile;
46

--- 14 unchanged lines hidden (view full) ---

61class Callback;
62class FunctionProfile
63{
64 private:
65 Callback *reset;
66 const SymbolTable *symtab;
67 ProfileNode top;
68 std::map<Addr, Counter> pc_count;
69 StackTrace trace;
69 TheISA::StackTrace trace;
70
71 public:
72 FunctionProfile(const SymbolTable *symtab);
73 ~FunctionProfile();
74
75 ProfileNode *consume(ThreadContext *tc, StaticInstPtr inst);
76 ProfileNode *consume(const std::vector<Addr> &stack);
77 void clear();

--- 14 unchanged lines hidden ---
70
71 public:
72 FunctionProfile(const SymbolTable *symtab);
73 ~FunctionProfile();
74
75 ProfileNode *consume(ThreadContext *tc, StaticInstPtr inst);
76 ProfileNode *consume(const std::vector<Addr> &stack);
77 void clear();

--- 14 unchanged lines hidden ---