Skip to content

Commit

Permalink
docs(learn): Migrate the legacy guide "Easy profiling for Node.js App…
Browse files Browse the repository at this point in the history
…lications" to the learn section (#6336)

* chore: Migrate the legacy guide Easy profiling for Node.js Applications to the learn section

* fix: Make necessary changes site wide

* chore: rename file, added to i18n, redirects.json

* fix: Broken link to new article

* Delete pages/en/guides/diagnostics/poor-performance/index.md

Signed-off-by: Adhiraj <[email protected]>

* Update redirects.json

Signed-off-by: Claudio W <[email protected]>

* Update index.md

Signed-off-by: Claudio W <[email protected]>

* Update redirects.json

Signed-off-by: Claudio W <[email protected]>

---------

Signed-off-by: Adhiraj <[email protected]>
Signed-off-by: Claudio W <[email protected]>
Co-authored-by: Claudio W <[email protected]>
  • Loading branch information
byt3h3ad and ovflowd authored Feb 14, 2024
1 parent 7f52495 commit 03d1198
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"nodejsTheDifferenceBetweenDevelopmentAndProduction": "Node.js, the difference between development and production",
"nodejsWithTypescript": "Node.js with TypeScript",
"nodejsWithWebassembly": "Node.js with WebAssembly",
"debugging": "Debugging Node.js"
"debugging": "Debugging Node.js",
"profiling": "Profiling Node.js Applications"
}
},
"asynchronousWork": {
Expand Down
4 changes: 4 additions & 0 deletions navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@
"debugging": {
"link": "/learn/getting-started/debugging",
"label": "components.navigation.learn.gettingStarted.links.debugging"
},
"profiling": {
"link": "/learn/getting-started/profiling",
"label": "components.navigation.learn.gettingStarted.links.profiling"
}
}
},
Expand Down
1 change: 0 additions & 1 deletion pages/en/guides/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ layout: docs.hbs
## General

- [Easy profiling for Node.js Applications](/guides/simple-profiling/)
- [Security Best Practices](/guides/security/)

## Node.js core concepts
Expand Down
2 changes: 1 addition & 1 deletion pages/en/learn/diagnostics/poor-performance/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ the others. When we do this locally, we usually try to optimize our code.

This document provides two simple ways to profile a Node.js application:

- [Using V8 Sampling Profiler](/guides/simple-profiling/)
- [Using V8 Sampling Profiler](/learn/getting-started/profiling/)
- [Using Linux Perf](/learn/diagnostics/poor-performance/using-linux-perf)
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Easy profiling for Node.js Applications
layout: docs.hbs
title: Profiling Node.js Applications
layout: learn.hbs
---

# Easy profiling for Node.js Applications
# Profiling Node.js Applications

There are many third party tools available for profiling Node.js applications
but, in many cases, the easiest option is to use the Node.js built-in profiler.
Expand Down
8 changes: 6 additions & 2 deletions redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@
"source": "/:locale/docs",
"destination": "https://nodejs.org/docs/latest/api/"
},
{
"source": "/:locale/docs/es6",
"destination": "/:locale/learn/getting-started/ecmascript-2015-es6-and-beyond"
},
{
"source": "/:locale/docs/guides",
"destination": "/:locale/guides"
Expand Down Expand Up @@ -201,8 +205,8 @@
"destination": "/:locale/learn/modules/publishing-node-api-modules"
},
{
"source": "/:locale/docs/es6",
"destination": "/:locale/learn/getting-started/ecmascript-2015-es6-and-beyond"
"source": "/:locale/guides/simple-profiling",
"destination": "/:locale/learn/getting-started/profiling"
},
{
"source": "/:locale/guides/diagnostics-flamegraph",
Expand Down

0 comments on commit 03d1198

Please sign in to comment.