[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[],[],null,["# Viewing historical trends\n=========================\n\n|\n| **Preview**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThis page describes Cloud Profiler's history view. It is intended\nfor developers who want to understand how a function's average resource\nusage changes over time.\n\nBefore you begin\n----------------\n\nThis feature displays data for the most recent 30 days. If\nyour service is newly deployed or if it hasn't been deployed for at least\n30 days, these charts might be empty or incomplete.\n\nOpening the history view\n------------------------\n\nThere are different ways you can view the history of resource\nusage for functions in your service.\n\n### Viewing the history of multiple functions\n\nTo display the average usage for multiple functions,\nclick **History** *show_chart*:\n\nBy default, this view displays the history for the\n5 functions that have the highest average usage.\nYou can configure this view to display, or to hide, specific functions:\n\n### Viewing the history of a specific function\n\nTo view the average usage for a specific function, do one of the\nfollowing:\n\n- In the flame graph, place your pointer on a frame that contains the function of interest, and then click **Show History** in the frame's tooltip.\n- Click **List** *list* , identify the function of interest, select **Actions** *more_vert* , and then select **Show History**.\n\nUnderstanding the charts\n------------------------\n\nEach line in a chart displays the history of resource usage for a specific\nfunction. The charts display 30 days of data. The most recent\ndata point on the charts is for the previous day.\n\nThe **Value type** menu lets you display the profile data as a percentage\nof the resource usage for all functions or as the absolute value\nin the metric's units.\nThe absolute usage for a function is determined by computing the ratio of\nits total resource usage across all profiles in a 24-hour period to the number\nof profiles in that period.\n\nThe **Show up to** menu lets you configure the maximum number of functions to\ndisplay. By default, this value is set to 5 functions.\n\nThe chart title indicates whether the chart displays the self usage or the total\nusage. The title also identifies the resource whose history data is displayed.\nIn the previous screenshot, the chart titles indicate that `CPU time` data is\nshown.\n\nThe chart legend lists the names of the functions whose resource usage\nis displayed.\n\nManipulating the chart\n----------------------\n\nTo highlight data for a specific function, hold the pointer over the function\nname in the legend.\n\nTo view detailed information about a data point, hold the pointer over\nthe data point to activate the tooltip:\n\nAs illustrated in the previous screenshot, the tooltip displays the\nfollowing:\n\n- Function name\n- Function filename\n- Date\n- Absolute usage and percentage usage\n- Number of profiles used to generate the data point\n\nFiltering the charts\n--------------------\n\nTo show or hide functions, you use filters.\nThe filters accept a regular expression as the filter value and the matches\nare case-sensitive. The regular expression is compared against all function\nnames and all filenames.\n\nTo add a filter, click **Add history filter**, select an option\nfrom the list, and then enter the value for the filter.\n\n| **Note:** If a function matches the regular expression included in a show-filter and a hide-filter, then the function is hidden. For example, if you add `Show:sort` and `Hide:sort`, then no data is displayed.\n\nTroubleshooting\n---------------\n\nThis section lists issues that are specific to the history view.\nFor help with other Profiler problems, see the general\n[Troubleshooting](/profiler/docs/troubleshooting) section.\n\nWhat's next\n-----------\n\n- [Select the profiles to analyze](/profiler/docs/selecting-profiles)."]]