Deleted Added
sdiff udiff text old ( 9496:28d88a0fda74 ) new ( 9497:2759161b9d7f )
full compact
1/*
2 * Copyright (c) 2011 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;

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

47 params()->ruby_system->registerAbstractController(this);
48}
49
50void
51AbstractController::clearStats()
52{
53 m_requestProfileMap.clear();
54 m_request_count = 0;
55}
56
57void
58AbstractController::profileRequest(const std::string &request)
59{
60 m_request_count++;
61
62 // if it doesn't exist, conveniently, it will be created with the
63 // default value which is 0
64 m_requestProfileMap[request]++;
65}