Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.0: Refactor cost tracking (backport of #1954) #1975

Merged
merged 2 commits into from
Jul 3, 2024

Commits on Jul 2, 2024

  1. Refactor cost tracking (#1954)

    * Refactor and additional metrics for cost tracking (#1888)
    
    * Refactor and add metrics:
    - Combine remove_* and update_* functions to reduce locking on cost-tracker and iteration.
    - Add method to calculate executed transaction cost by directly using actual execution cost and loaded accounts size;
    - Wireup histogram to report loaded accounts size;
    - Report time of block limits checking;
    - Move account counters from ExecuteDetailsTimings to ExecuteAccountsDetails;
    
    * Move committed transactions adjustment into its own function
    
    * remove histogram for loaded accounts size due to performance impact
    
    (cherry picked from commit f8630a3)
    tao-stones authored and mergify[bot] committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    ec3f4e3 View commit details
    Browse the repository at this point in the history
  2. rename cost_tracker.account_data_size to better describe its purpose …

    …is to tracker per-block new account allocation
    tao-stones committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    cbb57bd View commit details
    Browse the repository at this point in the history