René's URL Explorer Experiment


Title: Deprecate the profilerOutputDir profiler and name Java members in V8/DevTools profiles · Issue #2100 · NativeScript/android · GitHub

Open Graph Title: Deprecate the profilerOutputDir profiler and name Java members in V8/DevTools profiles · Issue #2100 · NativeScript/android

X Title: Deprecate the profilerOutputDir profiler and name Java members in V8/DevTools profiles · Issue #2100 · NativeScript/android

Description: Is your feature request related to a problem? Please describe. The runtime ships a legacy profiler, added in 2016 (d81045c), next to the Chrome DevTools profiler: Profiler.cpp always installs three globals: __startCPUProfiler(name) and _...

Open Graph Description: Is your feature request related to a problem? Please describe. The runtime ships a legacy profiler, added in 2016 (d81045c), next to the Chrome DevTools profiler: Profiler.cpp always installs three...

X Description: Is your feature request related to a problem? Please describe. The runtime ships a legacy profiler, added in 2016 (d81045c), next to the Chrome DevTools profiler: Profiler.cpp always installs three...

Opengraph URL: https://github.com/NativeScript/android/issues/2100

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deprecate the profilerOutputDir profiler and name Java members in V8/DevTools profiles","articleBody":"**Is your feature request related to a problem? Please describe.**\n\nThe runtime ships a legacy profiler, added in 2016 (d81045c76), next to the Chrome DevTools profiler:\n\n- `Profiler.cpp` always installs three globals:\n  - `__startCPUProfiler(name)` and `__stopCPUProfiler(name)` wrap V8's `CpuProfiler`, and stopping writes `\u003cprofilerOutputDir>/\u003capp>-\u003cname>-\u003ctime>.cpuprofile`.\n  - `__heapSnapshot()` writes a `.heapsnapshot` file to the same directory.\n- Setting `android.profilerOutputDir` also turns on `MetadataNode::Wrap`. That compiles a named JS wrapper around every Java class constructor and every Java method (`function getAlpha() { return getAlpha.__func.apply(this, arguments); }`) so that profiles show Java member names. The wrappers add a JS frame to every call and replace the functions apps see. In that mode a wrapper's `prototype.constructor` is the inner function, not the class the app sees.\n\nAs far as I can tell nobody uses it:\n- nothing in core, the CLI, the plugins or angular sets `profilerOutputDir`;\n- with the default empty value, `Write` builds a path at `/` and fails, so the globals produce nothing unless the option is set.\n\nThe only consumers I found are `@nativescript/core/profiling`'s `startCPUProfile`/`stopCPUProfile`, which call these globals on Android, and the `profilerOutputDir` entries in core's `config.interface.ts` and the CLI's `project.d.ts`.\n\nThe DevTools CPU and heap profilers cover the same ground through the inspector, with a better workflow. The one thing the legacy profiler does that they don't is to start and stop from app code with no inspector attached.\n\n**Describe the solution you'd like**\n\n1. **Deprecate the legacy profiler.**\n   - Log a deprecation warning when `profilerOutputDir` is set.\n   - Remove `MetadataNode::Wrap` and `s_profilerEnabled` in the next major release.\n   - Decide what happens to `__startCPUProfiler`/`__stopCPUProfiler`/`__heapSnapshot`, and to core's `startCPUProfile`/`stopCPUProfile`:\n     - remove them along with the profiler;\n     - or keep them as thin helpers that write to the app's files directory by default, for profiling a release build without an inspector.\n   - Deprecate `profilerOutputDir` in core's config types and the CLI's typings at the same time.\n2. **Make V8/DevTools profiles more informative instead.** Java members should show up under useful names in a DevTools CPU profile without wrapper functions. Start by checking what a profile shows today for:\n   - Java class constructors (`FunctionTemplate::SetClassName` is already set to the dotted Java name);\n   - instance and static methods (prototype template functions);\n   - field accessors and static members;\n   - functions created by `extend` and interface implementations.\n\n   Then fill the gaps with V8's naming APIs: `FunctionTemplate::SetClassName`, `Function::SetName`, or naming the template functions after their property keys. Where a name alone is ambiguous across overloads or same-named methods of different classes, include the declaring class, e.g. `android.view.View.getAlpha`.\n   - Optionally, label the time spent in the JS↔Java bridge: callback dispatch from Java, argument conversion and `ObjectManager` wrapper creation. A DevTools profile could then tell bridge overhead apart from app JS. V8's CPU profiler supports embedder states and trace events that could carry this.\n\n**Describe alternatives you've considered**\n\n- Keep the profiler as is. It costs little at runtime when off: `Wrap` returns the function unchanged unless `profilerOutputDir` is set. But it is unmaintained, undocumented, and has semantic quirks when on.\n- Keep only the wrapper naming. It changes the functions apps see and adds a frame per call, so it distorts the very profiles it is meant to label.\n\n**Additional context**\n\nThis came up while optimizing JS wrapper creation for Java objects, in the follow-up to #2099. Dropping a wrapper's own `constructor` property only made a difference in this profiler mode, where `wrapper.constructor` now resolves to the inner, unwrapped constructor, as `new`-created instances already did.\n","author":{"url":"https://github.com/edusperoni","@type":"Person","name":"edusperoni"},"datePublished":"2026-11-10T20:11:07Z","url":"https://github.com/NativeScript/android/issues/2100"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e3cdfd77-afe9-9e02-90d0-5a178c8889ed
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9226:38E318:9DBBE1:C6C9C1:6B012837
html-safe-noncebc772d4e474d32ce82f34b20a8649b6de4ec77c76e8ed610f40739082fd98f6d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjI2OjM4RTMxODo5REJCRTE6QzZDOUMxOjZCMDEyODM3IiwidmlzaXRvcl9pZCI6IjQwMzMyNzY2Nzk5MTE3MTI4MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9d70d7a4b2f992c06cf5a6367d08d7ba87ada4c35ddeed752d2afb164c198753
hovercard-subject-tagissue:6314947694
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/android/2100/issue_layout
twitter:imagehttps://opengraph.githubassets.com/20de3c32a435061b6f7ee3a40e881763c72af9f42480602bd3737fe9b35b1288/NativeScript/android/issues/2100
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/20de3c32a435061b6f7ee3a40e881763c72af9f42480602bd3737fe9b35b1288/NativeScript/android/issues/2100
og:image:altIs your feature request related to a problem? Please describe. The runtime ships a legacy profiler, added in 2016 (d81045c), next to the Chrome DevTools profiler: Profiler.cpp always installs three...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameedusperoni
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/android git https://github.com/NativeScript/android.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id29137950
octolytics-dimension-repository_nwoNativeScript/android
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id29137950
octolytics-dimension-repository_network_root_nwoNativeScript/android
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/android/issues/2100#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fissues%2F2100
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fissues%2F2100
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2Fandroid
Reloadhttps://github.com/NativeScript/android/issues/2100
Reloadhttps://github.com/NativeScript/android/issues/2100
Reloadhttps://github.com/NativeScript/android/issues/2100
NativeScripthttps://github.com/NativeScript
androidhttps://github.com/NativeScript/android
Codehttps://github.com/NativeScript/android
Issues106 (106)https://github.com/NativeScript/android/issues
Pull requests24 (24)https://github.com/NativeScript/android/pulls
Actionshttps://github.com/NativeScript/android/actions
Projectshttps://github.com/NativeScript/android/projects
Wikihttps://github.com/NativeScript/android/wiki
Security and qualityhttps://github.com/NativeScript/android/security
Insightshttps://github.com/NativeScript/android/insights
https://github.com/NativeScript/android
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/2100
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/2100
Deprecate the profilerOutputDir profiler and name Java members in V8/DevTools profileshttps://github.com/NativeScript/android/issues/2100#top
improvementhttps://github.com/NativeScript/android/issues?q=state%3Aopen%20label%3A%22improvement%22
https://github.com/edusperoni
edusperonihttps://github.com/edusperoni
on Nov 10, 2026https://github.com/NativeScript/android/issues/2100#issue-6314947694
d81045chttps://github.com/NativeScript/android/commit/d81045c763c792b3264c5f961618523a18c488cf
#2099https://github.com/NativeScript/android/pull/2099
edusperonihttps://github.com/edusperoni
improvementhttps://github.com/NativeScript/android/issues?q=state%3Aopen%20label%3A%22improvement%22
on Nov 10, 2026https://github.com/NativeScript/android/issues/2100#event-35724808308
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/android/issues/2100
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/2100
improvementhttps://github.com/NativeScript/android/issues?q=state%3Aopen%20label%3A%22improvement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.