Profiler.cc (6897:cfeb3d9563dd) | Profiler.cc (7002:48a19d52d939) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 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; --- 37 unchanged lines hidden (view full) --- 46 * Profiler.cc 47 * 48 * Description: See Profiler.hh 49 * 50 * $Id$ 51 * 52 */ 53 | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 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; --- 37 unchanged lines hidden (view full) --- 46 * Profiler.cc 47 * 48 * Description: See Profiler.hh 49 * 50 * $Id$ 51 * 52 */ 53 |
54// Allows use of times() library call, which determines virtual runtime 55#include <sys/resource.h> 56#include <sys/times.h> 57 |
|
54#include "mem/ruby/profiler/Profiler.hh" 55#include "mem/ruby/profiler/AddressProfiler.hh" 56#include "mem/ruby/system/System.hh" 57#include "mem/ruby/network/Network.hh" 58#include "mem/gems_common/PrioHeap.hh" 59#include "mem/protocol/CacheMsg.hh" 60#include "mem/protocol/Protocol.hh" 61#include "mem/gems_common/util.hh" 62#include "mem/gems_common/Map.hh" 63#include "mem/ruby/common/Debug.hh" 64#include "mem/protocol/MachineType.hh" 65 66#include "mem/ruby/system/System.hh" 67 | 58#include "mem/ruby/profiler/Profiler.hh" 59#include "mem/ruby/profiler/AddressProfiler.hh" 60#include "mem/ruby/system/System.hh" 61#include "mem/ruby/network/Network.hh" 62#include "mem/gems_common/PrioHeap.hh" 63#include "mem/protocol/CacheMsg.hh" 64#include "mem/protocol/Protocol.hh" 65#include "mem/gems_common/util.hh" 66#include "mem/gems_common/Map.hh" 67#include "mem/ruby/common/Debug.hh" 68#include "mem/protocol/MachineType.hh" 69 70#include "mem/ruby/system/System.hh" 71 |
68// Allows use of times() library call, which determines virtual runtime 69#include <sys/times.h> 70 | |
71extern std::ostream * debug_cout_ptr; 72 73static double process_memory_total(); 74static double process_memory_resident(); 75 76Profiler::Profiler(const Params *p) 77 : SimObject(p) 78{ --- 667 unchanged lines hidden --- | 72extern std::ostream * debug_cout_ptr; 73 74static double process_memory_total(); 75static double process_memory_resident(); 76 77Profiler::Profiler(const Params *p) 78 : SimObject(p) 79{ --- 667 unchanged lines hidden --- |