Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
a789dcc9
Unverified
Commit
a789dcc9
authored
Aug 24, 2021
by
Felix Lange
Committed by
GitHub
Aug 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
metrics: fix compilation for GOOS=js (#23449)
parent
b69f5ca7
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
6 deletions
+7
-6
cpu_disabled.go
metrics/cpu_disabled.go
+1
-1
cpu_enabled.go
metrics/cpu_enabled.go
+1
-1
cputime_nop.go
metrics/cputime_nop.go
+2
-0
cputime_unix.go
metrics/cputime_unix.go
+1
-1
runtime_cgo.go
metrics/runtime_cgo.go
+1
-2
runtime_no_cgo.go
metrics/runtime_no_cgo.go
+1
-1
No files found.
metrics/cpu_disabled.go
View file @
a789dcc9
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build ios
// +build ios
js
package
metrics
package
metrics
...
...
metrics/cpu_enabled.go
View file @
a789dcc9
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build !ios
// +build !ios
,!js
package
metrics
package
metrics
...
...
metrics/cpu
_windows
.go
→
metrics/cpu
time_nop
.go
View file @
a789dcc9
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
// You should have received a copy of the GNU Lesser General Public License
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build windows js
package
metrics
package
metrics
// getProcessCPUTime returns 0 on Windows as there is no system call to resolve
// getProcessCPUTime returns 0 on Windows as there is no system call to resolve
...
...
metrics/cpu
_syscall
.go
→
metrics/cpu
time_unix
.go
View file @
a789dcc9
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build !windows
// +build !windows
,!js
package
metrics
package
metrics
...
...
metrics/runtime_cgo.go
View file @
a789dcc9
// +build cgo
// +build cgo,!appengine,!js
// +build !appengine
package
metrics
package
metrics
...
...
metrics/runtime_no_cgo.go
View file @
a789dcc9
// +build !cgo appengine
// +build !cgo appengine
js
package
metrics
package
metrics
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment