<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-javascript-self-profiling-api-cs3-93fv9" -->

---
title: The JavaScript Self-Profiling API | daily.dev
description: The proposed native JavaScript self-profiling API could come in very useful. This API allows web developers to efficiently identify costly hotspots during page...
canonical: https://daily.dev/posts/the-javascript-self-profiling-api-cs3-93fv9
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The JavaScript Self-Profiling API | daily.dev
og:description: The proposed native JavaScript self-profiling API could come in very useful. This API allows web developers to efficiently identify costly hotspots during page...
og:url: https://daily.dev/posts/the-javascript-self-profiling-api-cs3-93fv9
og:image: https://api.daily.dev/og/posts/cS3_93fV9.png
og:image:alt: The JavaScript Self-Profiling API
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The JavaScript Self-Profiling API

**[Addy Osmani](https://daily.dev/sources/addy)** · [@addyosmani](https://daily.dev/addyosmani) · 1 min read · 11 upvotes · 2 comments

## Summary

The proposed native JavaScript self-profiling API could come in very useful. This API allows web developers to efficiently identify costly hotspots during page load and user-interactions in their JavaScript. The API also enables you to do things like allocate CPU budgets to individual features implemented on a page.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://addyosmani.com/blog/js-self-profiling/>

## Community discussion

Top comments from developers on daily.dev.

**@ljh1234** · 1 upvotes

> yes, its very useful

**@idoshamun** · 1 upvotes

> Can't wait for GA of this new API

---

Tags: [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/the-javascript-self-profiling-api-cs3-93fv9)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The JavaScript Self-Profiling API","url":"https://daily.dev/posts/the-javascript-self-profiling-api-cs3-93fv9","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-javascript-self-profiling-api-cs3-93fv9"},"datePublished":"2020-11-02T00:23:46.615Z","dateModified":"2021-10-07T14:17:10.317Z","description":"The proposed native JavaScript self-profiling API could come in very useful. This API allows web developers to efficiently identify costly hotspots during page...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ccbb506fc118452d91f8c490506d09c1","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ccbb506fc118452d91f8c490506d09c1","isAccessibleForFree":true,"articleSection":"Addy Osmani","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Addy Osmani","url":"https://daily.dev/addyosmani","image":"https://avatars2.githubusercontent.com/u/110953?v=4","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":5510}},"commentCount":2,"discussionUrl":"https://daily.dev/posts/the-javascript-self-profiling-api-cs3-93fv9","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":11},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"javascript","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Addy Osmani","item":"https://daily.dev/sources/addy"},{"@type":"ListItem","position":3,"name":"The JavaScript Self-Profiling API"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/the-javascript-self-profiling-api-cs3-93fv9","comment":[{"@type":"Comment","text":"yes, its very useful","datePublished":"2020-11-02T01:36:24.361Z","url":"https://daily.dev/posts/cS3_93fV9#c-D35hE9owu","author":{"@type":"Person","name":"clark","url":"https://daily.dev/ljh1234","image":"https://avatars3.githubusercontent.com/u/20716843?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Can’t wait for GA of this new API","datePublished":"2020-11-02T06:39:53.074Z","url":"https://daily.dev/posts/cS3_93fV9#c-qNkLeayLS","author":{"@type":"Person","name":"Ido Shamun","url":"https://daily.dev/idoshamun","image":"https://media.daily.dev/image/upload/s---xy_OAwk--/f_auto,q_auto/v1703781380/avatars/avatar_28849d86070e4c099c877ab6837c61f0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

