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 |
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 |
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 --- |