AddressProfiler.cc (7048:2ab58c54de63) AddressProfiler.cc (7054:7d6862b80049)
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;

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

42{
43 if (!record_map->exist(addr)) {
44 record_map->add(addr, AccessTraceForAddress(addr));
45 }
46 return record_map->lookup(addr);
47}
48
49void
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;

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

42{
43 if (!record_map->exist(addr)) {
44 record_map->add(addr, AccessTraceForAddress(addr));
45 }
46 return record_map->lookup(addr);
47}
48
49void
50printSorted(ostream& out, int num_of_sequencers, const AddressMap* record_map,
50printSorted(ostream& out, int num_of_sequencers, const AddressMap* record_map,
51 string description)
52{
53 const int records_printed = 100;
54
55 uint64 misses = 0;
56 PrioHeap<AccessTraceForAddress*> heap;
57 Vector<Address> keys = record_map->keys();
58 for (int i = 0; i < keys.size(); i++) {

--- 260 unchanged lines hidden ---
51 string description)
52{
53 const int records_printed = 100;
54
55 uint64 misses = 0;
56 PrioHeap<AccessTraceForAddress*> heap;
57 Vector<Address> keys = record_map->keys();
58 for (int i = 0; i < keys.size(); i++) {

--- 260 unchanged lines hidden ---