Changeset 74 for trunk/lib/Stats.h


Ignore:
Timestamp:
Mar 7, 2006, 4:46:59 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Improved web presentation. Y axises normalized, ticket ticket:15 resolved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.h

    r73 r74  
    3030
    3131    ///
    32     /// @brief Print statistics
     32    /// Create statistics graph.
    3333    ///
    34     void inline print(std::ostream& s, const std::string& name) const
    35     { s << "<p><img src='" << plot(name) << "' alt='[plot]' border=0></p>\n"; }
     34    std::string plot(const std::string&) const;
    3635
    3736    ///
     
    3938    ///
    4039    inline void reset(void) { map_.clear(); }
     40
     41    ///
     42    ///
     43    ///
     44    inline u_int rows(void) const { return accumulated().back(); }
    4145
    4246    ///
     
    5458    /// @return accumulated vector of total
    5559    ///
    56     std::vector<double> accumulated(void) const;
     60    std::vector<u_int> accumulated(void) const;
    5761
    5862    ///
    5963    /// @return accumulated vector of stats_[user]
    6064    ///
    61     std::vector<double> accumulated(const std::string& user) const;
     65    std::vector<u_int> accumulated(const std::string& user) const;
    6266
    6367    ///
     
    6569    ///
    6670    void add(const std::string& user, const u_int& revision);
    67 
    68     std::string plot(const std::string&) const;
    6971
    7072    static u_int latest_revision_; // latest revision for whole project
Note: See TracChangeset for help on using the changeset viewer.