Skip to content
callcount

map

See what your dependencies call most

Every dot is a function, placed by how often it’s called in production and how much of that runs inside a loop. Put on a project lens, say Kubernetes, and the map redraws to what that codebase calls, with its own loop shares. Search, filter, click through to any function.

Project lens
X-axis
Package
Origin
View
0%25%50%75%100%10k100kproduction calls (log scale)share of calls in a loopUnmarshalErrorfSprintfHasPrefixTrimSpaceFprintfBuilder.WriteStringPrintfContext.Done
coolhot in-loop prod callsringed = hottest320 functions across the corpus

Drag a box on the chart to zoom; double-click to reset. Or use the zoom controls. Volume = production calls.

Show the 320 plotted functions as a list
  1. fmt.Errorf394,317 · 16%
  2. github.com/Azure/go-autorest/autorest.NewErrorWithError215,125 · 0%
  3. fmt.Sprintf206,712 · 19%
  4. github.com/Azure/go-autorest/autorest.Encode193,077 · 0%
  5. encoding/json.Unmarshal174,642 · 50%
  6. errors.New104,841 · 5%
  7. strings.Join85,439 · 5%
  8. github.com/Azure/go-autorest/tracing.StartSpan84,867 · 0%
  9. github.com/Azure/go-autorest/tracing.EndSpan84,867 · 0%
  10. github.com/Azure/go-autorest/tracing.IsEnabled84,866 · 0%
  11. context.Background74,998 · 4%
  12. encoding/json.Marshal70,258 · 3%
  13. net/http.Request.WithContext67,184 · 0%
  14. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils.Marshal63,564 · 0%
  15. github.com/Azure/go-autorest/autorest.WithBaseURL62,503 · 0%
  16. sync.Mutex.Unlock56,909 · 8%
  17. github.com/Azure/go-autorest/autorest.Respond56,668 · 0%
  18. github.com/Azure/go-autorest/autorest.CreatePreparer56,667 · 0%
  19. github.com/Azure/go-autorest/autorest/azure.WithErrorUnlessStatusCode56,663 · 0%
  20. github.com/Azure/go-autorest/autorest.ByClosing56,497 · 0%
  21. github.com/Azure/go-autorest/autorest.WithQueryParameters55,964 · 0%
  22. github.com/Azure/go-autorest/autorest.WithPathParameters54,747 · 0%
  23. github.com/alibabacloud-go/tea/dara.String53,698 · 0%
  24. sync.Mutex.Lock52,807 · 7%
  25. github.com/Azure/go-autorest/autorest/azure.DoRetryWithRegistration50,090 · 0%
  26. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.FieldDef.WithLocationType49,076 · 0%
  27. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.FieldDef.WithName49,076 · 0%
  28. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.NewFieldDef49,076 · 0%
  29. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.WithRequestField47,211 · 0%
  30. github.com/Azure/go-autorest/autorest.ByUnmarshallingJSON44,775 · 0%
  31. fmt.Fprintf42,112 · 26%
  32. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.FieldDef.WithJsonTag41,445 · 0%
  33. strings.TrimSpace41,274 · 28%
  34. time.Now40,277 · 11%
  35. github.com/therecipe/qt/internal.CallLocalFunction35,572 · 0%
  36. github.com/Azure/go-autorest/autorest.AsGet35,031 · 0%
  37. path/filepath.Join34,201 · 21%
  38. github.com/aliyun/alibaba-cloud-sdk-go/sdk.Client.AddAsyncTask33,306 · 0%
  39. strings.Builder.WriteString32,940 · 31%
  40. fmt.Printf32,397 · 24%
  41. strings.HasPrefix30,383 · 42%
  42. github.com/alibabacloud-go/tea/dara.IsNil27,292 · 0%
  43. github.com/Azure/go-autorest/autorest/validation.Validate26,838 · 0%
  44. github.com/Azure/go-autorest/autorest/validation.NewError26,834 · 0%
  45. strings.Contains24,621 · 26%
  46. github.com/IBM/go-sdk-core/v5/core.SDKErrorf24,055 · 0%
  47. fmt.Println23,555 · 14%
  48. sync.RWMutex.Unlock23,210 · 5%
  49. github.com/DataDog/datadog-api-client-go/v2/api/datadog.Unmarshal22,652 · 0%
  50. errors.Is22,356 · 22%
  51. sync.RWMutex.Lock21,485 · 4%
  52. strings.ToLower20,277 · 28%
  53. io.Closer.Close20,222 · 8%
  54. strings.Split20,189 · 23%
  55. sync.RWMutex.RUnlock19,172 · 5%
  56. log.Printf19,095 · 21%
  57. net/http.Header.Set18,873 · 5%
  58. os.Getenv18,438 · 2%
  59. strconv.AppendInt18,193 · 1%
  60. reflect.ValueOf18,075 · 11%
  61. sync.RWMutex.RLock18,015 · 4%
  62. net/http.Header.Get16,808 · 3%
  63. github.com/DataDog/datadog-api-client-go/v2/api/datadog.Marshal16,726 · 0%
  64. github.com/aliyun/alibaba-cloud-sdk-go/sdk.Client.DoAction16,654 · 0%
  65. github.com/Azure/go-autorest/autorest.AsContentType16,388 · 0%
  66. github.com/Azure/go-autorest/autorest.WithJSON16,307 · 0%
  67. github.com/onsi/ginkgo/v2.By16,010 · 5%
  68. strconv.Itoa15,996 · 22%
  69. github.com/huaweicloud/huaweicloud-sdk-go-v3/core.HcHttpClient.Sync15,789 · 0%
  70. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/invoker.BaseInvoker.Invoke15,748 · 0%
  71. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/invoker.NewBaseInvoker15,748 · 0%
  72. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.Build15,748 · 0%
  73. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.WithContentType15,748 · 0%
  74. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.WithMethod15,748 · 0%
  75. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.WithPath15,748 · 0%
  76. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.WithResponse15,748 · 0%
  77. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.NewHttpRequestDefBuilder15,748 · 0%
  78. context.Context.Done15,472 · 49%
  79. github.com/Azure/go-autorest/autorest.DoRetryForStatusCodes15,451 · 0%
  80. github.com/Azure/go-autorest/autorest/azure.NewAsyncOpIncompleteError15,306 · 0%
  81. github.com/onsi/gomega.Expect15,253 · 9%
  82. github.com/Azure/go-autorest/autorest/azure.NewFutureFromResponse15,244 · 0%
  83. github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests.RpcRequest.InitWithApiInfo15,176 · 0%
  84. github.com/stretchr/testify/require.NoError14,613 · 11%
  85. context.Context.Err14,491 · 40%
  86. time.Since14,469 · 14%
  87. github.com/pkg/errors.Wrap13,876 · 12%
  88. bytes.Buffer.WriteString13,547 · 37%
  89. regexp.MustCompile13,236 · 2%
  90. os.File.Close13,197 · 8%
  91. github.com/pkg/errors.Wrapf13,165 · 21%
  92. net/http.Request.Context12,556 · 4%
  93. github.com/IBM/go-sdk-core/v5/core.UnmarshalPrimitive12,418 · 0%
  94. github.com/alibabacloud-go/tea/dara.Prettify12,411 · 0%
  95. strings.Trim12,148 · 7%
  96. github.com/pkg/errors.Errorf12,116 · 19%
  97. io.Writer.Write12,001 · 18%
  98. fmt.Sprint11,579 · 8%
  99. github.com/IBM/vpc-go-sdk/common.GetComponentInfo11,555 · 0%
  100. k8s.io/kubernetes/test/e2e/framework.ExpectNoError10,845 · 8%
  101. github.com/Azure/go-autorest/autorest.AsPost10,834 · 0%
  102. github.com/go-logr/logr.Logger.Info10,754 · 18%
  103. os.Stat10,445 · 20%
  104. context.WithTimeout10,349 · 7%
  105. strconv.Atoi10,287 · 24%
  106. strings.Builder.String10,272 · 8%
  107. time.Time.Add10,267 · 14%
  108. strings.HasSuffix9,952 · 32%
  109. time.Time.Year9,856 · 1%
  110. context.TODO9,832 · 17%
  111. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/json.Unmarshal9,646 · 0%
  112. net/url.Values.Add9,622 · 19%
  113. reflect.Value.Elem9,579 · 18%
  114. fmt.Fprintln9,441 · 18%
  115. net/url.Values.Set9,406 · 19%
  116. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter.StringConverterFactory9,238 · 0%
  117. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter.Converter.CovertStringToInterface9,237 · 0%
  118. github.com/onsi/gomega/types.Assertion.To9,153 · 11%
  119. strings.TrimPrefix9,143 · 33%
  120. reflect.TypeOf8,835 · 10%
  121. github.com/Azure/go-autorest/autorest.DecorateSender8,816 · 0%
  122. reflect.Value.Type8,737 · 21%
  123. os.Exit8,426 · 6%
  124. os.ReadFile8,399 · 12%
  125. testing.common.Fatalf8,169 · 20%
  126. github.com/IBM/go-sdk-core/v5/core.StringPtr8,160 · 0%
  127. net/http.Error8,077 · 3%
  128. github.com/Azure/go-autorest/autorest/to.String8,053 · 0%
  129. github.com/Azure/go-autorest/autorest.Prepare8,051 · 0%
  130. github.com/Azure/go-autorest/autorest.AsJSON8,040 · 0%
  131. reflect.Value.Kind7,888 · 19%
  132. time.Time.Format7,806 · 13%
  133. github.com/aws/aws-sdk-go/aws.String7,801 · 14%
  134. io.ReadAll7,757 · 6%
  135. path.Join7,748 · 18%
  136. reflect.Value.Set7,689 · 17%
  137. net/http.ResponseWriter.Header7,679 · 4%
  138. github.com/pkg/errors.New7,677 · 7%
  139. strings.ReplaceAll7,668 · 22%
  140. reflect.Value.Interface7,595 · 41%
  141. bytes.Buffer.Bytes7,583 · 9%
  142. github.com/Azure/go-autorest/autorest.AsPut7,583 · 0%
  143. bytes.NewReader7,538 · 7%
  144. time.Sleep7,451 · 62%
  145. os.IsNotExist7,171 · 17%
  146. net/url.Parse7,131 · 9%
  147. github.com/IBM/platform-services-go-sdk/common.GetComponentInfo7,104 · 0%
  148. bytes.Buffer.String7,066 · 9%
  149. github.com/DataDog/datadog-api-client-go/v2/api/datadog.UnmarshalUseNumber7,027 · 0%
  150. github.com/DataDog/datadog-api-client-go/v2/api/datadog.DeleteKeys7,023 · 0%
  151. github.com/Azure/go-autorest/autorest.AsDelete6,959 · 0%
  152. net/url.URL.String6,765 · 9%
  153. github.com/alibabacloud-go/tea/dara.Validate6,619 · 0%
  154. os/exec.Command6,593 · 8%
  155. time.Time.UTC6,581 · 10%
  156. testing.common.Errorf6,568 · 27%
  157. sort.Strings6,513 · 11%
  158. reflect.Type.Kind6,473 · 18%
  159. github.com/go-logr/logr.Logger.V6,431 · 22%
  160. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/json.Marshal6,428 · 0%
  161. testing.common.Helper6,411 · 0%
  162. net/url.URL.Query6,411 · 2%
  163. github.com/openai/openai-go/v3/internal/apijson.UnmarshalRoot6,371 · 0%
  164. github.com/IBM/go-sdk-core/v5/core.UnmarshalModel6,359 · 0%
  165. github.com/go-kit/log.Logger.Log6,344 · 29%
  166. math.Abs6,230 · 17%
  167. time.Time.Minute6,225 · 1%
  168. sync.WaitGroup.Done6,153 · 42%
  169. slices.Contains6,125 · 38%
  170. time.Time.Hour6,085 · 1%
  171. strings.EqualFold6,055 · 42%
  172. net/http.ResponseWriter.WriteHeader6,054 · 2%
  173. strconv.FormatInt6,036 · 30%
  174. github.com/containerd/log.G6,021 · 23%
  175. sync.WaitGroup.Wait6,004 · 5%
  176. strings.TrimSuffix5,999 · 27%
  177. regexp.Regexp.MatchString5,970 · 30%
  178. github.com/onsi/gomega/types.Assertion.ToNot5,913 · 6%
  179. github.com/onsi/gomega.HaveOccurred5,913 · 7%
  180. github.com/okta/okta-sdk-golang/v5/okta.newAPIResponse5,828 · 0%
  181. github.com/alibabacloud-go/tea/dara.Convert5,803 · 0%
  182. path/filepath.Dir5,758 · 19%
  183. time.Time.IsZero5,748 · 20%
  184. net/url.Values.Get5,725 · 4%
  185. sync.WaitGroup.Add5,713 · 39%
  186. github.com/alibabacloud-go/tea/dara.BoolValue5,683 · 0%
  187. go.opentelemetry.io/otel/attribute.Key.String5,656 · 0%
  188. github.com/Azure/go-autorest/autorest.DecoratePreparer5,652 · 0%
  189. github.com/alibabacloud-go/darabonba-openapi/v2/utils.Query5,635 · 0%
  190. github.com/go-logr/logr.Logger.Error5,626 · 15%
  191. strings.Replace5,616 · 22%
  192. context.WithValue5,612 · 2%
  193. github.com/Azure/go-autorest/autorest.WithHeader5,549 · 0%
  194. github.com/jesseduffield/lazygit/pkg/integration/components.Contains5,544 · 0%
  195. errors.As5,466 · 10%
  196. os.Open5,457 · 9%
  197. strconv.ParseInt5,443 · 22%
  198. errors.Join5,442 · 22%
  199. github.com/stretchr/testify/require.Assertions.NoError5,438 · 5%
  200. encoding/json.Decoder.Decode5,409 · 10%
  201. time.Time.Unix5,378 · 12%
  202. k8s.io/klog/v2.V5,371 · 22%
  203. reflect.Type.Elem5,340 · 22%
  204. net/http.Header.Add5,337 · 58%
  205. context.WithCancel5,322 · 4%
  206. time.Duration.Seconds5,293 · 14%
  207. sync.Once.Do5,281 · 3%
  208. github.com/Azure/go-autorest/autorest.String5,277 · 0%
  209. os.MkdirAll5,215 · 9%
  210. github.com/jdcloud-api/jdcloud-sdk-go/core.Logger.Log5,211 · 0%
  211. net/http.Client.Do5,209 · 8%
  212. github.com/jdcloud-api/jdcloud-sdk-go/core.JDCloudClient.Send5,198 · 0%
  213. os.Remove5,131 · 17%
  214. encoding/json.NewDecoder5,120 · 3%
  215. log.Fatal5,097 · 7%
  216. path/filepath.Base5,015 · 24%
  217. github.com/therecipe/qt/internal.CallLocalAndDeregisterRemoteFunction4,981 · 0%
  218. strconv.ParseUint4,975 · 34%
  219. github.com/therecipe/qt/internal.CallLocalAndRegisterRemoteFunction4,973 · 0%
  220. io/fs.DirEntry.Name4,958 · 91%
  221. strconv.FormatFloat4,868 · 15%
  222. io.Copy4,862 · 11%
  223. testing.T.Run4,861 · 17%
  224. sort.Slice4,860 · 9%
  225. github.com/stretchr/testify/assert.Equal4,790 · 11%
  226. context.Context.Value4,752 · 1%
  227. time.Time.UnixNano4,743 · 11%
  228. time.Time.Second4,720 · 1%
  229. log.Fatalf4,690 · 14%
  230. github.com/markusmobius/go-dateparser/internal/regexp.MustCompile4,635 · 0%
  231. time.Unix4,624 · 18%
  232. github.com/stretchr/testify/require.Assertions.Equal4,622 · 6%
  233. time.Time.Month4,603 · 2%
  234. net/http.NewRequestWithContext4,532 · 5%
  235. bytes.Equal4,524 · 32%
  236. gorm.io/gorm.DB.Where4,508 · 7%
  237. net/url.Values.Encode4,426 · 2%
  238. encoding/json.MarshalIndent4,400 · 4%
  239. golang.org/x/xerrors.Errorf4,397 · 19%
  240. bytes.NewBuffer4,340 · 5%
  241. os.WriteFile4,320 · 11%
  242. io/fs.FileInfo.IsDir4,314 · 24%
  243. github.com/onsi/ginkgo/v2.It4,305 · 2%
  244. fmt.Fprint4,278 · 23%
  245. bytes.Buffer.WriteByte4,263 · 44%
  246. strings.Index4,258 · 32%
  247. time.Time.Sub4,248 · 28%
  248. github.com/juju/errors.Trace4,225 · 21%
  249. strconv.FormatBool4,201 · 12%
  250. google.golang.org/grpc/status.Errorf4,181 · 10%
  251. time.Time.Day4,145 · 1%
  252. log.Println4,117 · 18%
  253. strings.SplitN4,087 · 41%
  254. k8s.io/klog/v2.Verbose.Infof4,079 · 24%
  255. k8s.io/kubernetes/test/e2e/framework.Logf4,073 · 25%
  256. github.com/DataDog/datadog-api-client-go/v2/api/datadog.APIClient.Decode4,066 · 0%
  257. time.Time.Before4,064 · 27%
  258. k8s.io/apimachinery/pkg/api/errors.IsNotFound4,059 · 16%
  259. log/slog.Logger.Debug4,002 · 25%
  260. time.After3,994 · 43%
  261. github.com/cockroachdb/errors.Wrap3,991 · 10%
  262. go.uber.org/zap.String3,981 · 23%
  263. time.Time.After3,944 · 35%
  264. net/url.PathEscape3,941 · 5%
  265. strings.ToUpper3,926 · 28%
  266. github.com/onsi/gomega.Equal3,854 · 11%
  267. github.com/Azure/go-autorest/autorest.AsPatch3,852 · 0%
  268. reflect.Value.Len3,808 · 13%
  269. github.com/IBM/networking-go-sdk/common.GetComponentInfo3,806 · 0%
  270. github.com/sirupsen/logrus.Debugf3,787 · 32%
  271. strings.Builder.WriteByte3,765 · 60%
  272. bytes.Buffer.Write3,729 · 33%
  273. github.com/hashicorp/terraform/internal/tfdiags.Diagnostics.Append3,722 · 18%
  274. github.com/seaweedfs/seaweedfs/weed/glog.V3,693 · 22%
  275. io/ioutil.ReadAll3,674 · 2%
  276. flag.String3,657 · 0%
  277. time.NewTicker3,626 · 2%
  278. github.com/hashicorp/boundary/internal/errors.New3,611 · 5%
  279. k8s.io/apimachinery/pkg/util/validation/field.Invalid3,588 · 31%
  280. encoding/json.Encoder.Encode3,571 · 5%
  281. github.com/rs/zerolog.Event.Msg3,571 · 18%
  282. strings.Cut3,562 · 42%
  283. k8s.io/klog/v2.KObj3,556 · 26%
  284. net.Conn.Close3,551 · 16%
  285. log/slog.String3,549 · 21%
  286. encoding/base64.Encoding.EncodeToString3,518 · 9%
  287. google.golang.org/protobuf/compiler/protogen.GeneratedFile.P3,487 · 17%
  288. github.com/onsi/gomega.Succeed3,477 · 9%
  289. github.com/therecipe/qt/core.QObject.QObject_PTR3,467 · 0%
  290. sync/atomic.Bool.Load3,463 · 12%
  291. encoding/hex.EncodeToString3,458 · 10%
  292. encoding/json.NewEncoder3,447 · 2%
  293. os.File.Name3,404 · 9%
  294. strconv.ParseFloat3,379 · 24%
  295. strconv.FormatUint3,356 · 45%
  296. k8s.io/kubernetes/test/e2e/framework.Failf3,351 · 13%
  297. hash.Hash.Sum3,343 · 6%
  298. time.Ticker.Stop3,343 · 10%
  299. github.com/seaweedfs/seaweedfs/weed/glog.Verbose.Infof3,340 · 22%
  300. gitea.dev/modules/log.Error3,340 · 16%
  301. encoding/binary.Write3,339 · 9%
  302. reflect.Value.IsNil3,314 · 23%
  303. github.com/hashicorp/boundary/internal/errors.Wrap3,309 · 12%
  304. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors.NewTencentCloudSDKError3,258 · 0%
  305. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common.Client.Send3,255 · 0%
  306. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common.Client.GetCredential3,252 · 0%
  307. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common.Client.InitBaseRequest3,252 · 0%
  308. encoding/binary.Read3,248 · 12%
  309. io/fs.FileInfo.Mode3,215 · 19%
  310. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http.BaseRequest.Init3,213 · 0%
  311. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http.BaseRequest.WithApiInfo3,213 · 0%
  312. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http.BaseRequest.SetContext3,211 · 0%
  313. reflect.DeepEqual3,210 · 24%
  314. slices.Clone3,203 · 13%
  315. os.RemoveAll3,190 · 12%
  316. github.com/gravitational/trace.Wrap3,156 · 9%
  317. github.com/anthropics/anthropic-sdk-go/internal/apijson.UnmarshalRoot3,133 · 0%
  318. regexp.Regexp.FindStringSubmatch3,093 · 26%
  319. github.com/larksuite/cli/shortcuts/common.RuntimeContext.Str3,042 · 1%
  320. encoding/binary.bigEndian.Uint323,037 · 20%

Colour is heat, how many of a function’s production calls land inside loops. The ringed, labelled functions run both hot and often, which is where a profiler is most likely to agree. Static counts aren’t runtime cost. Snapshot 2026-W49.